forked from libsemigroups/libsemigroups
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
198 lines (188 loc) · 6 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
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
pr:
- master
- stable-*.*
trigger:
- master
- stable-*.*
variables:
CCACHE_DIR: $(Pipeline.Workspace)/ccache
CXXFLAGS: "-fdiagnostics-color"
pool:
vmImage: 'ubuntu-latest'
jobs:
# This job should be re-enabled when GAP 4.12 is released
# - job: GAP
# steps:
# - script: ci/launch-gap-docker-container.sh
# displayName: 'Running the Semigroups package for GAP tests in docker container. . .'
- job: quick
steps:
- bash: |
sudo apt-get install -y ccache
echo "##vso[task.prependpath]/usr/lib/ccache"
displayName: "Install dependencies . . ."
- task: Cache@2
inputs:
key: 'ccache | "$(Agent.OS)"'
path: $(CCACHE_DIR)
displayName: Restore cache . . .
- bash: |
mkdir -p m4 && ./autogen.sh && ./configure --disable-hpcombi --disable-popcnt --disable-clzll
displayName: "Configure . . ."
- bash: |
ccache -z && make -j4 && ccache -s
displayName: "Build libsemigroups . . ."
- bash: |
ccache -z && make test_all -j4 && ccache -s
displayName: "Build test_all . . ."
- bash: |
./test_all "[quick],[standard]"
displayName: "Run the quick and standard tests . . ."
- job: config_options
variables:
PKG_CONFIG_PATH: "/usr/share/miniconda/lib/pkgconfig:/usr/share/miniconda/share/pkgconfig"
LD_LIBRARY_PATH: "/usr/share/miniconda/lib"
steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- bash: conda install -c conda-forge --yes mamba
displayName: "conda install mamba . . ."
- script: rm -f /usr/share/miniconda/pkgs/cache/*.json
displayName: 'Workaround for mamba-org/mamba#488'
- bash: mamba install -c conda-forge --yes fmt
displayName: "mamba install fmt"
- script: rm -f /usr/share/miniconda/pkgs/cache/*.json
displayName: 'Workaround for mamba-org/mamba#488'
- bash: mamba install -c conda-forge --yes eigen
displayName: "mamba install eigen"
- bash: |
sudo apt-get install -y ccache
echo "##vso[task.prependpath]/usr/lib/ccache"
displayName: "Install dependencies . . ."
- task: Cache@2
inputs:
key: 'ccache | "$(Agent.OS)"'
path: $(CCACHE_DIR)
displayName: Restore cache . . .
- bash: |
./autogen.sh
displayName: "Run ./autogen.sh . . ."
- bash: |
./configure --with-external-fmt --enable-fmt
ccache -z
make test_all -j4 || exit 1
ccache -s
./test_all "[quick]"
displayName: "Test flag: --with-external-fmt --enable-fmt"
- bash: |
make clean
./configure --enable-fmt
ccache -z
make test_all -j4 || exit 1
ccache -s
./test_all "[quick]"
displayName: "Test flag: --enable-fmt"
- bash: |
make clean
./configure --with-external-eigen
ccache -z
make test_obvinf -j4 || exit 1
make test_digraph -j4 || exit 1
ccache -s
./test_obvinf "[quick]"
./test_digraph "[quick]"
displayName: "Test flag: --with-external-eigen"
- bash: |
make clean
./configure --disable-eigen
ccache -z
make test_obvinf -j4 || exit 1
make test_digraph -j4 || exit 1
ccache -s
./test_obvinf "[quick]"
./test_digraph "[quick]"
displayName: "Test flag: --disable-eigen"
- job: more_config_options
steps:
- bash: |
sudo apt-get install -y ccache
echo "##vso[task.prependpath]/usr/lib/ccache"
displayName: "Install dependencies . . ."
- task: Cache@2
inputs:
key: 'ccache | "$(Agent.OS)"'
path: $(CCACHE_DIR)
displayName: "Restore cache . . ."
- bash: |
./autogen.sh
displayName: "Run ./autogen.sh . . ."
- bash: |
./configure --enable-fmt --enable-stats
ccache -z
make test_todd_coxeter -j4 || exit 1
ccache -s
./test_todd_coxeter "[041],[045]"
displayName: "Test flags: --enable-fmt --enable-stats"
- bash: |
make clean
./configure --enable-fmt --disable-stats
ccache -z
make test_todd_coxeter -j4 || exit 1
ccache -s
./test_todd_coxeter "[041],[045]"
displayName: "Test flags: --enable-fmt --disable-stats"
- bash: |
make clean
./configure --disable-fmt --enable-stats
ccache -z
make test_todd_coxeter -j4 || exit 1
ccache -s
./test_todd_coxeter "[041],[045]"
displayName: "Test flags: --disable-fmt --enable-stats"
- bash: |
make clean
./configure --disable-fmt --disable-stats
ccache -z
make test_todd_coxeter -j4 || exit 1
ccache -s
./test_todd_coxeter "[041],[045]"
displayName: "Test flags: --disable-fmt --disable-stats"
- job: libsemigroups_pybind11
variables:
URL: "https://github.com/libsemigroups/libsemigroups_pybind11.git"
LD_LIBRARY_PATH: "/usr/local/lib/"
steps:
- bash: |
sudo apt-get install -y ccache
echo "##vso[task.prependpath]/usr/lib/ccache"
displayName: "Install dependencies . . ."
- task: Cache@2
inputs:
key: 'ccache | "$(Agent.OS)"'
path: $(CCACHE_DIR)
displayName: "Restore cache . . ."
- bash: |
mkdir -p m4 && ./autogen.sh && ./configure --disable-hpcombi --disable-popcnt --disable-clzll
displayName: "Configure . . ."
- bash: |
ccache -z && sudo make install -j4 && ccache -s
displayName: "Build libsemigroups . . ."
- bash: |
VERSION=$(git ls-remote --tags "$URL" | grep -o 'refs/tags/v[0-9]*\.[0-9]*\.[0-9]*' | sort -r | head -n 1 | grep -o '[^\/]*$')
git clone --depth 1 --branch "$VERSION" "$URL"
displayName: "Clone libsemigroups_pybind11 . . ."
- bash: |
cd libsemigroups_pybind11
sudo apt-get --yes update
sudo apt-get install python3 --yes
sudo apt-get install python3-pip --yes
sudo -H pip3 install -r requirements.txt
displayName: "Installing prerequisites for libsemigroups_pybind11 . . ."
- bash: |
cd libsemigroups_pybind11
sudo -H pip3 install .
displayName: "Building libsemigroups_pybind11 . . ."
- bash: |
cd libsemigroups_pybind11
make check
displayName: "Running libsemigroups_pybind11 tests . . ."