because we are transitioning from GitLab to GitHub
Bas Nijholt authored on 19/12/2018 17:46:44 • GitHub committed on 19/12/2018 17:46:441 | 1 |
new file mode 100644 |
... | ... |
@@ -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' |