gnome-control-center/.gitlab-ci.yml
Claudio André 9460babd1e CI: use an updated Docker image
We value repeatability and reproducibility; that said, we need to use a
fresh Fedora. So, pick an image that is updated every week.
2018-05-13 17:03:26 -03:00

45 lines
797 B
YAML

image: claudioandre/settings:fedora.dev
stages:
- build
- test
##
# Stage: Build
#
# Checks if GNOME Control Center is properly building and installing. This is the
# most important stage of the CI, and no MR should ever be merged if it breaks
# any of them.
##
build:
stage: build
artifacts:
name: builded
untracked: true
expire_in: 3h30min
script:
- meson . _build
- ninja -C _build
- ninja -C _build install
##
# Stage: Test
#
# Runs the unit tests.
##
test:
stage: test
dependencies:
- build
script:
- |
if [[ -n "${CI_COMMIT_TAG}" ]]; then
echo "== Distro Test =="
meson test -C _build
ninja dist -C _build
else
echo "== Testing =="
meson test -C _build --verbose --no-stdsplit
fi