zathura/.gitlab-ci.yml

154 lines
2.7 KiB
YAML
Raw Normal View History

2020-01-05 14:21:51 +01:00
stages:
- build
- test
# Cache
2020-01-05 14:28:04 +01:00
cache: &girara_cache
2020-01-05 14:21:51 +01:00
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths:
- subprojects/girara
# Archlinux
build:archlinux:
tags:
- pwmt
stage: build
image: registry.pwmt.org/pwmt/gitlab-runner-images/archlinux:latest
script:
2020-12-01 10:35:43 +01:00
- meson subprojects update
2020-01-05 14:21:51 +01:00
- mkdir -p build && cd build
2020-12-01 08:56:28 +01:00
- meson --force-fallback-for=girara ..
2020-01-05 14:21:51 +01:00
- ninja
2020-01-05 14:28:04 +01:00
cache:
<<: *girara_cache
2020-01-05 14:21:51 +01:00
artifacts:
expire_in: 1 day
paths:
- build
except:
- tags
test:archlinux:
tags:
- pwmt
stage: test
image: registry.pwmt.org/pwmt/gitlab-runner-images/archlinux:latest
script:
- cd build
- ninja test
2020-01-05 14:28:04 +01:00
cache:
<<: *girara_cache
policy: pull
2020-01-05 14:21:51 +01:00
dependencies:
- build:archlinux
except:
- tags
# Debian 10 (Buster)
build:debian-buster:
tags:
- pwmt
stage: build
image: registry.pwmt.org/pwmt/gitlab-runner-images/debian:buster
script:
2020-12-01 10:35:43 +01:00
- meson subprojects update
2020-01-05 14:21:51 +01:00
- mkdir -p build && cd build
2020-12-01 08:56:28 +01:00
- meson --force-fallback-for=girara ..
2020-01-05 14:21:51 +01:00
- ninja
2020-01-05 14:28:04 +01:00
cache:
<<: *girara_cache
2020-01-05 14:21:51 +01:00
artifacts:
expire_in: 1 day
paths:
- build
except:
- tags
test:debian-buster:
tags:
- pwmt
stage: test
image: registry.pwmt.org/pwmt/gitlab-runner-images/debian:buster
script:
- cd build
- ninja test
2020-01-05 14:28:04 +01:00
cache:
<<: *girara_cache
policy: pull
2020-01-05 14:21:51 +01:00
dependencies:
- build:debian-buster
except:
- tags
# Ubuntu 18.04 LTS (Bionic Beaver)
build:ubuntu-bionic:
tags:
- pwmt
stage: build
image: registry.pwmt.org/pwmt/gitlab-runner-images/ubuntu:bionic
script:
2020-12-01 10:35:43 +01:00
- meson subprojects update
2020-01-05 14:21:51 +01:00
- mkdir -p build && cd build
2020-12-01 08:56:28 +01:00
- meson --force-fallback-for=girara ..
2020-01-05 14:21:51 +01:00
- ninja
2020-01-05 14:28:04 +01:00
cache:
<<: *girara_cache
2020-01-05 14:21:51 +01:00
artifacts:
expire_in: 1 day
paths:
- build
except:
- tags
test:ubuntu-bionic:
tags:
- pwmt
stage: test
image: registry.pwmt.org/pwmt/gitlab-runner-images/ubuntu:bionic
script:
- cd build
- ninja test
2020-01-05 14:28:04 +01:00
cache:
<<: *girara_cache
policy: pull
2020-01-05 14:21:51 +01:00
dependencies:
- build:ubuntu-bionic
except:
- tags
# Ubuntu 19.10 (Eoan Ermine)
build:ubuntu-eoan:
tags:
- pwmt
stage: build
image: registry.pwmt.org/pwmt/gitlab-runner-images/ubuntu:eoan
script:
2020-12-01 10:35:43 +01:00
- meson subprojects update
2020-01-05 14:21:51 +01:00
- mkdir -p build && cd build
2020-12-01 08:56:28 +01:00
- meson --force-fallback-for=girara ..
2020-01-05 14:21:51 +01:00
- ninja
2020-01-05 14:28:04 +01:00
cache:
<<: *girara_cache
2020-01-05 14:21:51 +01:00
artifacts:
expire_in: 1 day
paths:
- build
except:
- tags
test:ubuntu-eoan:
tags:
- pwmt
stage: test
image: registry.pwmt.org/pwmt/gitlab-runner-images/ubuntu:eoan
script:
- cd build
- ninja test
2020-01-05 14:28:04 +01:00
cache:
<<: *girara_cache
policy: pull
2020-01-05 14:21:51 +01:00
dependencies:
- build:ubuntu-eoan
except:
- tags