2019-06-05 03:50:58 +00:00
|
|
|
# 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
|
2019-06-06 16:05:29 +00:00
|
|
|
AMD64_FEDORA_LATEST: 'registry.fedoraproject.org/fedora:30'
|
|
|
|
AMD64_FEDORA_RAWHIDE: 'registry.fedoraproject.org/fedora:rawhide'
|
2019-06-05 03:50:58 +00:00
|
|
|
AMD64_OPENSUSE_LEAP: opensuse/leap
|
|
|
|
AMD64_OPENSUSE_TUMBLEWEED: opensuse/tumbleweed
|
|
|
|
|
2019-06-07 16:42:19 +00:00
|
|
|
I386_UBUNTU_BIONIC: 'i386/ubuntu:bionic'
|
2019-06-07 16:37:56 +00:00
|
|
|
|
2019-06-05 03:50:58 +00:00
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
|
2019-06-07 15:40:08 +00:00
|
|
|
.meson_test:
|
|
|
|
stage: test
|
2019-06-06 18:19:55 +00:00
|
|
|
script:
|
|
|
|
- meson builddir
|
|
|
|
- ninja -C builddir
|
2019-06-07 16:42:19 +00:00
|
|
|
- meson test -C builddir --print-errorlogs
|
2019-06-06 18:19:55 +00:00
|
|
|
after_script:
|
|
|
|
- cp builddir/meson-logs/meson-log.txt .
|
|
|
|
- rm -rf builddir
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- 'meson-log.txt'
|
2019-06-09 05:24:10 +00:00
|
|
|
|
|
|
|
.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'
|
|
|
|
|
2019-06-07 16:25:31 +00:00
|
|
|
debian:testing:
|
2019-06-07 15:40:08 +00:00
|
|
|
extends: '.meson_test'
|
2019-06-06 18:19:55 +00:00
|
|
|
image: $AMD64_DEBIAN_TESTING
|
|
|
|
before_script:
|
2019-07-15 20:57:56 +00:00
|
|
|
- apt-get update -y
|
|
|
|
- apt-get install -y gcc meson python3-distutils
|
2019-06-06 18:19:55 +00:00
|
|
|
|
2020-02-21 02:08:45 +00:00
|
|
|
debian:testing:cmake:
|
2019-06-09 05:24:10 +00:00
|
|
|
extends: '.cmake_test'
|
2020-02-21 02:08:45 +00:00
|
|
|
image: $AMD64_DEBIAN_TESTING
|
2019-06-09 05:24:10 +00:00
|
|
|
before_script:
|
2019-07-15 20:57:56 +00:00
|
|
|
- apt-get update -y
|
2020-02-21 02:08:45 +00:00
|
|
|
- apt-get install -y gcc make python3-pip cmake
|
2019-06-09 05:24:10 +00:00
|
|
|
|
2019-06-06 18:19:55 +00:00
|
|
|
ubuntu:bionic:meson:
|
2019-06-07 15:40:08 +00:00
|
|
|
extends: '.meson_test'
|
2019-06-06 18:19:55 +00:00
|
|
|
image: $AMD64_UBUNTU_BIONIC
|
|
|
|
before_script:
|
2019-07-15 20:57:56 +00:00
|
|
|
- apt-get update -y
|
|
|
|
- apt-get install -y gcc python3-pip ninja-build
|
2019-06-06 18:19:55 +00:00
|
|
|
- pip3 install meson
|
|
|
|
|
2019-06-07 16:37:56 +00:00
|
|
|
ubuntu:bionic:i386:
|
|
|
|
extends: '.meson_test'
|
|
|
|
image: $I386_UBUNTU_BIONIC
|
|
|
|
before_script:
|
2019-07-15 20:57:56 +00:00
|
|
|
- apt-get update -y
|
|
|
|
- apt-get install -y gcc python3-pip ninja-build
|
2019-06-07 16:37:56 +00:00
|
|
|
- pip3 install meson
|
|
|
|
|
2019-06-07 16:25:31 +00:00
|
|
|
fedora:30:
|
2019-06-07 15:40:08 +00:00
|
|
|
extends: '.meson_test'
|
2019-06-06 18:19:55 +00:00
|
|
|
image: $AMD64_FEDORA_LATEST
|
|
|
|
before_script:
|
|
|
|
- dnf install -y gcc meson
|
|
|
|
|
2019-06-07 16:25:31 +00:00
|
|
|
fedora:rawhide:
|
2019-06-07 15:40:08 +00:00
|
|
|
extends: '.meson_test'
|
2019-06-06 18:19:55 +00:00
|
|
|
image: $AMD64_FEDORA_RAWHIDE
|
|
|
|
before_script:
|
|
|
|
- dnf install -y gcc meson
|
|
|
|
allow_failure: true
|
|
|
|
|
2019-06-07 16:25:31 +00:00
|
|
|
opensuse/leap:
|
2019-06-07 15:40:08 +00:00
|
|
|
extends: '.meson_test'
|
2019-06-06 18:19:55 +00:00
|
|
|
image: $AMD64_OPENSUSE_LEAP
|
|
|
|
before_script:
|
|
|
|
- zypper install -y gcc ninja python3-pip
|
|
|
|
- pip3 install meson
|
|
|
|
|
2019-06-07 16:25:31 +00:00
|
|
|
opensuse/tumbleweed:
|
2019-06-07 15:40:08 +00:00
|
|
|
extends: '.meson_test'
|
2019-06-06 18:19:55 +00:00
|
|
|
image: $AMD64_OPENSUSE_TUMBLEWEED
|
|
|
|
before_script:
|
|
|
|
- zypper install -y gcc meson
|