-
Notifications
You must be signed in to change notification settings - Fork 22
/
.gitlab-ci.yml
97 lines (84 loc) · 2.22 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
# CI setup based on https://gitlab.gnome.org/GNOME/librsvg/blob/master/.gitlab-ci.yml
variables:
AMD64_DEBIAN_TESTING: debian:testing
AMD64_UBUNTU_BIONIC: ubuntu:bionic
AMD64_FEDORA_LATEST: 'registry.fedoraproject.org/fedora:30'
AMD64_FEDORA_RAWHIDE: 'registry.fedoraproject.org/fedora:rawhide'
AMD64_OPENSUSE_LEAP: opensuse/leap
AMD64_OPENSUSE_TUMBLEWEED: opensuse/tumbleweed
I386_UBUNTU_BIONIC: 'i386/ubuntu:bionic'
stages:
- test
.meson_test:
stage: test
script:
- meson builddir
- ninja -C builddir
- meson test -C builddir --print-errorlogs
after_script:
- cp builddir/meson-logs/meson-log.txt .
- rm -rf builddir
artifacts:
paths:
- 'meson-log.txt'
.cmake_test:
stage: test
script:
- mkdir builddir && cd builddir
- cmake ..
- cmake --build . --config Release
- make check
after_script:
- cp builddir/CMakeFiles/CMakeOutput.log .
- rm -rf builddir
artifacts:
paths:
- 'CMakeOutput.log'
debian:testing:
extends: '.meson_test'
image: $AMD64_DEBIAN_TESTING
before_script:
- apt-get update -y
- apt-get install -y gcc meson python3-distutils
debian:testing:cmake:
extends: '.cmake_test'
image: $AMD64_DEBIAN_TESTING
before_script:
- apt-get update -y
- apt-get install -y gcc make python3-pip cmake
ubuntu:bionic:meson:
extends: '.meson_test'
image: $AMD64_UBUNTU_BIONIC
before_script:
- apt-get update -y
- apt-get install -y gcc python3-pip ninja-build
- pip3 install meson
ubuntu:bionic:i386:
extends: '.meson_test'
image: $I386_UBUNTU_BIONIC
before_script:
- apt-get update -y
- apt-get install -y gcc python3-pip ninja-build
- pip3 install meson
fedora:30:
extends: '.meson_test'
image: $AMD64_FEDORA_LATEST
before_script:
- dnf install -y gcc meson
fedora:rawhide:
extends: '.meson_test'
image: $AMD64_FEDORA_RAWHIDE
before_script:
- dnf install -y gcc meson
allow_failure: true
opensuse/leap:
extends: '.meson_test'
image: $AMD64_OPENSUSE_LEAP
before_script:
- zypper install -y gcc ninja python3-pip
- pip3 install meson
opensuse/tumbleweed:
extends: '.meson_test'
image: $AMD64_OPENSUSE_TUMBLEWEED
before_script:
- zypper install -y gcc meson