-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathazure-pipelines.yml
49 lines (44 loc) · 1.56 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
# C/C++ with GCC
# Build your C/C++ project with GCC using make.
# Add steps that publish test results, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/c-cpp/gcc
trigger: none # will disable CI builds entirely i.e. merges, check-ins do not trigger this build
pr:
- master # trigger on a PR to master
jobs:
- job: build_and_test_linux
pool:
vmImage: 'ubuntu-latest'
steps:
- script: conda env create --file tests/environment.yml --name fpocket_test
displayName: Create Anaconda environment
- script: conda env list
displayName: environment installation verification
- task: Bash@3
inputs:
targetType: 'inline'
script: |
eval "$(conda shell.bash hook)"
sudo apt-get install libnetcdf-dev
conda activate fpocket_test
make
pytest
displayName: Active
- job: build_and_test_mac
pool:
vmImage: 'macOS-10.15'
steps:
- bash: sudo chown -R $USER $CONDA
- script: conda env create --file tests/environment.yml --name fpocket_test
displayName: Create Anaconda environment
- script: conda env list
displayName: environment installation verification
- task: Bash@3
inputs:
targetType: 'inline'
script: |
eval "$(conda shell.bash hook)"
conda activate fpocket_test
make fpocket ARCH=MACOSXX86_64
pytest
displayName: Active