forked from libsemigroups/libsemigroups
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
133 lines (124 loc) · 3.92 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
pr:
- main
- stable-*.*
trigger:
- main
- stable-*.*
variables:
CCACHE_DIR: $(Pipeline.Workspace)/ccache
CXXFLAGS: "-fdiagnostics-color"
pool:
vmImage: 'ubuntu-latest'
jobs:
- 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 update || exit 1
sudo apt-get install -y ccache || exit 1
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: 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 . . ."