Skip to content

Commit 3a85046

Browse files
committed
Merge branch 'master' of github.com:mpi4py/mpi4py-fft
2 parents f8bee56 + 9e402d0 commit 3a85046

File tree

1 file changed

+86
-0
lines changed

1 file changed

+86
-0
lines changed

azure-pipelines.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
jobs:
2+
- job: macOS
3+
displayName: macOS-10.13
4+
pool:
5+
vmImage: 'macOS-10.13'
6+
strategy:
7+
matrix:
8+
Python27:
9+
python.version: '2.7'
10+
Python36:
11+
python.version: '3.6'
12+
Python37:
13+
python.version: '3.7'
14+
15+
steps:
16+
- bash: echo "##vso[task.prependpath]$CONDA/bin"
17+
displayName: Add conda to PATH
18+
19+
- bash: sudo chown -R $USER $CONDA
20+
displayName: Take ownership of conda installation
21+
22+
- bash: |
23+
conda config --add channels conda-forge
24+
conda config --add channels spectralDNS
25+
conda config --set always_yes yes
26+
conda install -n root conda-build=3.17
27+
displayName: Set up Anaconda
28+
29+
- bash: |
30+
conda build --python $PYTHON_VERSION ./conf
31+
displayName: Build and test
32+
33+
- job: Ubuntu
34+
displayName: Ubuntu
35+
pool:
36+
vmImage: 'ubuntu-16.04'
37+
strategy:
38+
matrix:
39+
Python27:
40+
python.version: '2.7'
41+
Python36:
42+
python.version: '3.6'
43+
Python37:
44+
python.version: '3.7'
45+
46+
steps:
47+
- bash: echo "##vso[task.prependpath]$CONDA/bin"
48+
displayName: Add conda to PATH
49+
50+
- bash: |
51+
conda config --add channels conda-forge
52+
conda config --add channels spectralDNS
53+
conda config --set always_yes yes
54+
conda install -n root conda-build=3.17
55+
displayName: Set up Anaconda
56+
57+
- bash: |
58+
conda build --no-test --python $PYTHON_VERSION ./conf
59+
conda create --name mpi4py_fft_env mpi4py_fft_test coverage scipy pyfftw python=$PYTHON_VERSION --use-local
60+
source activate mpi4py_fft_env
61+
pip install codecov codacy-coverage
62+
cd tests && ./runtests.sh
63+
displayName: Build and test
64+
65+
- task: PublishTestResults@2
66+
condition: succeededOrFailed()
67+
inputs:
68+
testResultsFiles: '**/coverage.xml'
69+
testRunTitle: 'Publish test results for Python $(python.version)'
70+
71+
- task: PublishCodeCoverageResults@1
72+
inputs:
73+
codeCoverageTool: Cobertura
74+
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
75+
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'
76+
77+
- bash: |
78+
if [ $PYTHON_VERSION == 3.7 ]; then
79+
source activate mpi4py_fft_env
80+
cd tests
81+
curl -s -o codecov.sh https://codecov.io/bash
82+
bash codecov.sh -X gcov -X fix -t $(CODECOV_TOKEN)
83+
python-codacy-coverage -r coverage.xml -t $(CODACY_PROJECT_TOKEN)
84+
fi
85+
condition: succeeded()
86+
displayName: Upload to Codecov

0 commit comments

Comments
 (0)