-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
110 lines (90 loc) · 3.14 KB
/
azure-pipelines.yml
File metadata and controls
110 lines (90 loc) · 3.14 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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
jobs:
- job: linux
pool:
vmImage: 'ubuntu-latest'
steps:
- checkout: self
- 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 nthash
displayName: Create Anaconda environment
- script: |
source activate nthash
conda install --yes -c conda-forge mamba
mamba install --yes -c conda-forge compilers clang llvm clang-format clang-tools meson ninja openmp
displayName: Install dependencies
- script: |
source activate nthash
meson setup build && cd build && ninja
displayName: 'Build the project'
- script: |
source activate nthash
set -o errexit -o pipefail
cd examples
g++ kmer_hashing.cpp -std=c++17 -I../include -L../build -lnthash && ./a.out
displayName: 'Compile example'
- script: |
source activate nthash
cd build && ninja clang-format-check
displayName: 'Check code format'
- script: |
source activate nthash
cd build && ninja clang-tidy
displayName: 'Run clang-tidy'
- script: |
source activate nthash
cd build && meson test --print-errorlogs
displayName: 'Run tests'
- job: macos
pool:
vmImage: 'macOS-latest'
steps:
- checkout: self
persistCredentials: true
- 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 nthash
displayName: Create Anaconda environment
- script: |
source activate nthash
conda install --yes -c conda-forge mamba
mamba install --yes -c conda-forge compilers clang llvm clang-format clang-tools meson ninja openmp
displayName: Install dependencies
- script: |
source activate nthash
meson setup build && cd build && ninja
displayName: 'Build the project'
- script: |
source activate nthash
set -o errexit -o pipefail
cd examples
g++ kmer_hashing.cpp -std=c++17 -I../include -L../build -lnthash && ./a.out
displayName: 'Compile example'
- script: |
source activate nthash
cd build && ninja clang-format-check
displayName: 'Check code format'
- script: |
source activate nthash
cd build && ninja clang-tidy
displayName: 'Run clang-tidy'
- script: |
source activate nthash
cd build && meson test --print-errorlogs
displayName: 'Run tests'