zathura/.gitlab-ci.yml

191 lines
3.4 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 11 (bullseye)
build:debian-bullseye:
2020-01-05 14:21:51 +01:00
tags:
- pwmt
stage: build
image: registry.pwmt.org/pwmt/gitlab-runner-images/debian:bullseye
2020-01-05 14:21:51 +01:00
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-bullseye:
2020-01-05 14:21:51 +01:00
tags:
- pwmt
stage: test
image: registry.pwmt.org/pwmt/gitlab-runner-images/debian:bullseye
2020-01-05 14:21:51 +01:00
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-bullseye
2020-01-05 14:21:51 +01:00
except:
- tags
# Debian 12 (bookworm)
build:debian-bookworm:
tags:
- pwmt
stage: build
image: registry.pwmt.org/pwmt/gitlab-runner-images/debian:bookworm
script:
- meson subprojects update
- mkdir -p build && cd build
- meson --force-fallback-for=girara ..
- ninja
cache:
<<: *girara_cache
artifacts:
expire_in: 1 day
paths:
- build
except:
- tags
test:debian-bookworm:
tags:
- pwmt
stage: test
image: registry.pwmt.org/pwmt/gitlab-runner-images/debian:bookworm
script:
- cd build
- ninja test
cache:
<<: *girara_cache
policy: pull
dependencies:
- build:debian-bookworm
except:
- tags
# Ubuntu 20.04 LTS (Focal)
2022-05-08 14:51:43 +02:00
build:ubuntu-focal:
2020-01-05 14:21:51 +01:00
tags:
- pwmt
stage: build
image: registry.pwmt.org/pwmt/gitlab-runner-images/ubuntu:focal
2020-01-05 14:21:51 +01:00
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-focal:
2020-01-05 14:21:51 +01:00
tags:
- pwmt
stage: test
image: registry.pwmt.org/pwmt/gitlab-runner-images/ubuntu:focal
2020-01-05 14:21:51 +01:00
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-focal
2020-01-05 14:21:51 +01:00
except:
- tags
# Ubuntu 22.04 LTS (jammy)
build:ubuntu-bionic:
2020-01-05 14:21:51 +01:00
tags:
- pwmt
stage: build
image: registry.pwmt.org/pwmt/gitlab-runner-images/ubuntu:jammy
2020-01-05 14:21:51 +01:00
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-jammy:
2020-01-05 14:21:51 +01:00
tags:
- pwmt
stage: test
image: registry.pwmt.org/pwmt/gitlab-runner-images/ubuntu:jammy
2020-01-05 14:21:51 +01:00
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-jammy
2020-01-05 14:21:51 +01:00
except:
- tags