-
Notifications
You must be signed in to change notification settings - Fork 9
/
azure-pipelines.yml
65 lines (63 loc) · 2.38 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
#https://aka.ms/yaml
jobs:
- job:
displayName: linux
pool:
vmImage: "ubuntu-latest"
steps:
- script: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- script: conda create --yes --quiet --name ntedit_CI
displayName: Create Anaconda environment
- script: |
source activate ntedit_CI
conda install --yes -c conda-forge mamba python=3.12
mamba install --yes -c conda-forge -c bioconda libcxx llvm clang compilers=1.7.0 meson ninja btllib make clang-tools perl zlib ntstat ntcard boost snakemake cmake
displayName: Install dependencies
- script: |
source activate ntedit_CI
meson build --prefix=$(pwd)/test_build
cd build
ninja install
displayName: Compile ntEdit
- script: |
source activate ntedit_CI
make clang-format
displayName: Clang-format
- script: |
source activate ntedit_CI
export PATH=$(pwd)/test_build/bin:$PATH
make check
displayName: Check output files
- job:
displayName: mac
pool:
vmImage: macOS-latest
steps:
- script: |
mkdir -p ~/miniforge3
curl -L https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-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 ntedit_CI
displayName: Create Anaconda environment
- script: |
source activate ntedit_CI
mamba install --yes -c conda-forge -c bioconda python compilers=1.7.0 llvm-openmp make btllib perl zlib clang-tools meson ninja ntstat ntcard boost snakemake cmake
displayName: Install dependencies
- script: |
source activate ntedit_CI
meson build --prefix=$(pwd)/test_build
cd build
ninja install
displayName: Compile ntEdit
- script: |
source activate ntedit_CI
export PATH=$(pwd)/test_build/bin:$PATH
make check
displayName: Check output files