268a3aa6 |
steps:
|
a1cb7c3e |
- bash: echo "##vso[task.prependpath]/usr/share/miniconda/bin"
displayName: Add conda to PATH
|
3ffadd46 |
- script: conda env create --quiet --file environment.yml
displayName: Create Anaconda environment
|
a1cb7c3e |
|
3ffadd46 |
- script: |
source activate adaptive
pip install -r test-requirements.txt
|
268a3aa6 |
displayName: 'Install test-requirements.txt'
|
3ffadd46 |
- script: |
source activate adaptive
py.test --verbose --cov=adaptive --cov-report term --cov-report html adaptive
|
268a3aa6 |
displayName: 'Run the tests'
- script: |
MISSING_AUTHORS=$(git shortlog -s HEAD | sed -e "s/^[0-9\t ]*//"| xargs -i sh -c 'grep -q "{}" AUTHORS.md || echo "{} missing from authors"')
if [ ! -z "$MISSING_AUTHORS" ]; then { echo $MISSING_AUTHORS; exit 1; }; fi
continueOnError: true
displayName: 'Authors check'
- script: ./check_whitespace
continueOnError: true
displayName: 'Whitespace check'
|