-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.gitlab-ci.yml
98 lines (89 loc) · 2.14 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
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
stages:
- build
deb_stable_gcc:
tags: &unix
- Linux
image: debian:stable
before_script: &debian_gcc
- apt-get -y update
- apt-get -y upgrade
- apt-get -y install cmake g++ perl
stage: build
script: &scr
- mkdir build
- cd build
- cmake -DWERROR=ON ..
- make
- ctest --output-on-failure
deb_stable_clang:
tags: *unix
image: debian:testing
before_script: &debian_clang
- apt-get -y update
- apt-get -y upgrade
- apt-get -y install cmake clang perl
stage: build
script: *scr
deb_test_gcc:
tags: *unix
image: debian:testing
before_script: *debian_gcc
stage: build
script: *scr
deb_sid_gcc:
tags: *unix
image: debian:testing
before_script: *debian_gcc
stage: build
script: *scr
deb_sid_clang:
tags: *unix
image: debian:testing
before_script: *debian_clang
stage: build
script: *scr
suse_current:
tags: *unix
image: opensuse/tumbleweed
# rolling release with infinite life time
before_script:
- zypper -n patch || echo "do it again"
- zypper -n patch
- zypper -n ref
- zypper -n up
- zypper -n dup
- zypper -n in cmake gcc-c++ perl
stage: build
script: *scr
# suse_stable:
# opensuse:leap, unsupported here because it is at cmake 3.5, while libcerf requires 3.6
centos7:
tags: *unix
image: centos:centos7
before_script:
- yum -y update
- yum -y install epel-release
- yum repolist
- yum -y install make cmake3 gcc-c++ perl
- cmake3 --version
- ctest3 --version
- cpack3 --version
- ln -s /usr/bin/cmake3 /usr/bin/cmake
- ln -s /usr/bin/ctest3 /usr/bin/ctest
- ln -s /usr/bin/cpack3 /usr/bin/cpack
stage: build
script: *scr
windows:
tags:
- Windows
stage: build
script:
- New-Item -ItemType "directory" -Confirm:$false -Force:$true -Name "build"
- cd build
- cmd.exe "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
- cmake -G "Visual Studio 15 2017" -A x64 -T host=x64 -DLIB_MAN=OFF -DLIB_INSTALL=OFF -B. ..
- cmake --build . --config Release
- Get-Location
- dir
- dir Release
- ctest -C Release --output-on-failure