-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
60 lines (56 loc) · 1.18 KB
/
.gitlab-ci.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
.vcsn_template: &vcsn_template
cache:
key: "$CI_JOB_NAME"
paths:
- /root/.ccache
script:
- pwd
- ccache -s
- ccache -M 20GB
- ccache -s
- ./bootstrap
- mkdir build
- cd build
- ../configure CPPFLAGS="$CPPFLAGS" CC="$CC" CXX="$CXX" CXXFLAGS="$CXXFLAGS"
- make
- if [[ $CHECK == "installcheck" ]]; then make install; fi
- make "$CHECK"
- ccache -s
artifacts:
when: always
paths:
- build/*.log
- build/*/*.log
- build/*/*/*.log
archlinux:gcc:speed:
<<: *vcsn_template
image: registry.lrde.epita.fr/vcsn-build-arch
variables:
CPPFLAGS: -DNDEBUG
CC: gcc
CXX: g++
CXXFLAGS: -O3
CHECK: check
archlinux:clang:debug:
<<: *vcsn_template
image: registry.lrde.epita.fr/vcsn-build-arch
variables:
CC: clang
CXX: clang++
CHECK: installcheck
debian:gcc:debug:
<<: *vcsn_template
image: registry.lrde.epita.fr/vcsn-build-debian
variables:
CC: gcc
CXX: g++
CHECK: check
debian:clang:speed:
<<: *vcsn_template
image: registry.lrde.epita.fr/vcsn-build-debian
variables:
CPPFLAGS: -DNDEBUG
CC: clang
CXX: clang++
CXXFLAGS: -O3
CHECK: installcheck