gnome-control-center/.gitlab-ci.yml
2018-05-14 19:20:37 -03:00

47 lines
855 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:
- echo "== Building =="
- meson . _build
- ninja -C _build
- echo "== Installing =="
- 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