Skip to content

Commit 268a3aa

Browse files
authored
create CI config for Azure DevOps
because we are transitioning from GitLab to GitHub
1 parent 0207eef commit 268a3aa

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

azure-pipelines.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
steps:
2+
- task: CondaEnvironment@1
3+
inputs:
4+
packageSpecs: >
5+
python=3.6
6+
sortedcontainers
7+
sortedcollections
8+
scipy
9+
holoviews
10+
ipyparallel
11+
distributed
12+
ipykernel>=4.8*
13+
jupyter_client>=5.2.2
14+
ipywidgets
15+
scikit-optimize
16+
plotly
17+
createCustomEnvironment: true
18+
createOptions: "-c conda-forge"
19+
environmentName: 'adaptive'
20+
21+
- script: pip install -r test-requirements.txt
22+
displayName: 'Install test-requirements.txt'
23+
24+
- script: py.test --verbose --cov=adaptive --cov-report term --cov-report html adaptive
25+
displayName: 'Run the tests'
26+
27+
- script: |
28+
MISSING_AUTHORS=$(git shortlog -s HEAD | sed -e "s/^[0-9\t ]*//"| xargs -i sh -c 'grep -q "{}" AUTHORS.md || echo "{} missing from authors"')
29+
if [ ! -z "$MISSING_AUTHORS" ]; then { echo $MISSING_AUTHORS; exit 1; }; fi
30+
continueOnError: true
31+
displayName: 'Authors check'
32+
33+
- script: ./check_whitespace
34+
continueOnError: true
35+
displayName: 'Whitespace check'

0 commit comments

Comments
 (0)