-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
72 lines (68 loc) · 1.72 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
stages:
- build
- test
build:arch:
image: archlinux/base
stage: build
before_script:
- pacman -Syu --noconfirm
- pacman -S base-devel boost cmake gcc clang git curl wget pugixml --noconfirm
script:
- mkdir build
- cd build
- cmake ..
- make
artifacts:
paths:
- build
test:arch:
image: archlinux/base
stage: test
before_script:
- pacman -Syu --noconfirm
- pacman -S base-devel boost cmake gcc clang git curl wget --noconfirm
- pacman -S pugixml --noconfirm
script:
- cd build
- ctest
dependencies:
- build:arch
build:ubuntu:focal:
image: ubuntu:20.04
stage: build
variables:
DEBIAN_FRONTEND: "noninteractive"
before_script:
- apt-get update
- apt-get upgrade -y
- ln -fs /usr/share/zoneinfo/Asia/Kolkata /etc/localtime
- apt-get install -y tzdata
- dpkg-reconfigure --frontend noninteractive tzdata
- apt-get install -y build-essential checkinstall zlib1g-dev
- apt-get install -y libboost-all-dev cmake gcc clang git curl wget libssl-dev libpugixml-dev
script:
- mkdir build
- cd build
- cmake ..
- make
artifacts:
paths:
- build
test:ubuntu:focal:
image: ubuntu:20.04
stage: test
variables:
DEBIAN_FRONTEND: "noninteractive"
before_script:
- apt-get update
- apt-get upgrade -y
- ln -fs /usr/share/zoneinfo/Asia/Kolkata /etc/localtime
- apt-get install -y tzdata
- dpkg-reconfigure --frontend noninteractive tzdata
- apt-get install -y build-essential checkinstall zlib1g-dev
- apt-get install -y libboost-all-dev cmake gcc clang git curl wget libssl-dev libpugixml-dev
script:
- cd build
- ctest
dependencies:
- build:ubuntu:focal