forked from libsemigroups/libsemigroups
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
100 lines (94 loc) · 2.71 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
pr:
- master
- stable-*.*
trigger:
- master
- stable-*.*
variables:
CCACHE_DIR: $(Pipeline.Workspace)/ccache
CXXFLAGS: "-fdiagnostics-color"
pool:
vmImage: 'ubuntu-latest'
jobs:
- job: GAP
steps:
- script: ci/azure-gap.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;
mamba install -c conda-forge --yes fmt;
mamba install -c conda-forge --yes eigen;
displayName: "Install eigen3 and fmt using conda . . ."
- 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
ccache -s
./test_obvinf "[quick]"
displayName: "Test flag: --with-external-eigen"
- bash: |
make clean
./configure --disable-eigen
ccache -z
make test_obvinf -j4 || exit 1
ccache -s
./test_obvinf "[quick]"
displayName: "Test flag: --disable-eigen"