this is much faster
Bas Nijholt authored on 05/03/2019 15:49:48... | ... |
@@ -2,16 +2,17 @@ steps: |
2 | 2 |
- bash: echo "##vso[task.prependpath]/usr/share/miniconda/bin" |
3 | 3 |
displayName: Add conda to PATH |
4 | 4 |
|
5 |
-- bash: sudo chown -R $USER /usr/share/miniconda |
|
6 |
- displayName: Take ownership of conda installation |
|
5 |
+- script: conda env create --quiet --file environment.yml |
|
6 |
+ displayName: Create Anaconda environment |
|
7 | 7 |
|
8 |
-- script: conda env update --name root --quiet --file environment.yml |
|
9 |
- displayName: Create conda environment |
|
10 |
- |
|
11 |
-- script: pip install -r test-requirements.txt |
|
8 |
+- script: | |
|
9 |
+ source activate adaptive |
|
10 |
+ pip install -r test-requirements.txt |
|
12 | 11 |
displayName: 'Install test-requirements.txt' |
13 | 12 |
|
14 |
-- script: py.test --verbose --cov=adaptive --cov-report term --cov-report html adaptive |
|
13 |
+- script: | |
|
14 |
+ source activate adaptive |
|
15 |
+ py.test --verbose --cov=adaptive --cov-report term --cov-report html adaptive |
|
15 | 16 |
displayName: 'Run the tests' |
16 | 17 |
|
17 | 18 |
- script: | |