-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
47 lines (46 loc) · 1.67 KB
/
azure-pipelines.yml
File metadata and controls
47 lines (46 loc) · 1.67 KB
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
# See https://docs.microsoft.com/azure/devops/pipelines/languages/python
jobs:
- job: Test
pool:
vmImage: 'ubuntu-latest'
steps:
- script: |
mkdir -p ~/miniforge3
curl -L https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh -o ~/miniforge3/miniforge.sh
bash ~/miniforge3/miniforge.sh -b -u -p ~/miniforge3
rm -rf ~/miniforge3/miniforge.sh
~/miniforge3/bin/conda init bash
~/miniforge3/bin/conda init zsh
export CONDA=$(realpath ~/miniforge3/bin)
echo "##vso[task.prependpath]$CONDA"
displayName: Install conda
- script: conda create --yes --quiet --name physlr
displayName: Create Anaconda environment
- script: |
source activate physlr
conda install --yes -c conda-forge -c bioconda --file requirements.txt
displayName: Install dependencies
- script: |
source activate physlr
conda install --yes -c bioconda -c conda-forge clang clang-tools openmp
displayName: Conda Install clang-format and clang-tidy
- script: sudo apt-get install -qq libboost-dev
displayName: Install boost
- script: pip3 install pylint .
displayName: Install Python packages
- script: make lint
displayName: Run pylint
- script: |
source activate physlr
make -C src all
displayName: Compile C++ executables
- script: |
source activate physlr
make -C src lint
displayName: Run clang-format and clang-tidy
- script: |
source activate physlr
make -C src check
displayName: Test C++ executables
- script: make -C data test python_executable=python m=1 prune_branches=1 prune_bridges=1
displayName: Test Python modules