/
azure-pipelines.yml
93 lines (77 loc) · 2.35 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#add the different platforms to test
#in case of windows the following line has to be added
#windows: 'vs2017-win2016'
variables:
linux: 'ubuntu-18.04'
mac: 'macos-10.15'
#do not include branches as of now
#trigger:
#- master
jobs:
- job: 'Linux'
pool:
vmImage: $(linux)
strategy:
matrix:
Python37:
python.version: '3.7'
Python36:
python.version: '3.6'
maxParallel: 4
steps:
- bash: |
echo "##vso[task.prependpath]$CONDA/bin"
conda create --yes --quiet python=$(python.version) --name conenv
source activate conenv
conda config --set always_yes yes --set changeps1 no
conda config --add channels conda-forge
conda install -c conda-forge libiconv
conda install -c anaconda setuptools
conda update --yes conda
conda install -q conda-build
displayName: Setup Anaconda Environment
- bash: |
source activate conenv
conda install -c conda-forge --file requirements_dev.txt
pip install -e .
displayName: Install package
- bash: |
source activate conenv
pytest --cov-report term-missing --cov=pyscal tests/
bash <(curl -s https://codecov.io/bash)
displayName: Run tests
- job: 'MacOS'
pool:
vmImage: $(mac)
strategy:
matrix:
Python37:
python.version: '3.7'
Python36:
python.version: '3.6'
maxParallel: 4
steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- bash: sudo chown -R $USER $CONDA
displayName: Take ownership of conda installation
- bash: |
conda create --yes --quiet python=$(python.version) --name conenv
source activate conenv
conda config --set always_yes yes --set changeps1 no
conda config --add channels conda-forge
conda install -c conda-forge libiconv
conda install -c anaconda setuptools
conda update --yes conda
conda install -q conda-build
displayName: Setup Anaconda Environment
- bash: |
source activate conenv
conda install -c conda-forge --file requirements_dev.txt
pip install -e .
displayName: Install package
- bash: |
source activate conenv
pytest --cov-report term-missing --cov=pyscal tests/
codecov
displayName: Run tests