2018-10-15 11:17:22 +00:00
|
|
|
# Quick syntax check:
|
|
|
|
# python -c 'import sys, yaml; yaml.dump (yaml.load (sys.stdin), sys.stdout)' <.gitlab-ci.yml
|
|
|
|
|
|
|
|
# If things don't seem to work, this can help:
|
|
|
|
# https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/ci/lint
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- deploy
|
|
|
|
|
|
|
|
.fedora_install: &fedora_install
|
|
|
|
before_script:
|
2019-02-08 09:34:56 +00:00
|
|
|
- date '+%Y%m%d-%H%M%S'; NM_INSTALL="dnf install -y" ./contrib/fedora/REQUIRED_PACKAGES
|
|
|
|
- date '+%Y%m%d-%H%M%S'; dnf install -y glibc-langpack-pl ccache clang
|
|
|
|
- date '+%Y%m%d-%H%M%S'; locale -a
|
|
|
|
- date '+%Y%m%d-%H%M%S'; contrib/scripts/nm-ci-patch-gtkdoc.sh || true
|
2018-10-15 11:17:22 +00:00
|
|
|
|
2019-02-04 10:06:21 +00:00
|
|
|
.fedora_script: &fedora_script
|
|
|
|
stage: test
|
|
|
|
script:
|
2019-04-02 14:50:07 +00:00
|
|
|
- date '+%Y%m%d-%H%M%S'; uname -a
|
|
|
|
- date '+%Y%m%d-%H%M%S'; dnf list --installed
|
2019-02-08 09:34:56 +00:00
|
|
|
- date '+%Y%m%d-%H%M%S'; git clean -fdx ; CI=gitlab BUILD_TYPE=autotools CC=gcc WITH_DOCS=1 contrib/scripts/nm-ci-run.sh
|
2019-02-08 18:01:52 +00:00
|
|
|
- date '+%Y%m%d-%H%M%S'; rm -rf /tmp/nm-docs-html; mv build/INST/share/gtk-doc/html /tmp/nm-docs-html
|
2019-02-08 09:34:56 +00:00
|
|
|
- date '+%Y%m%d-%H%M%S'; git clean -fdx ; CI=gitlab BUILD_TYPE=meson CC=gcc WITH_DOCS=1 contrib/scripts/nm-ci-run.sh
|
|
|
|
- date '+%Y%m%d-%H%M%S'; git clean -fdx ; CI=gitlab BUILD_TYPE=autotools CC=clang WITH_DOCS=0 contrib/scripts/nm-ci-run.sh
|
|
|
|
- date '+%Y%m%d-%H%M%S'; git clean -fdx ; CI=gitlab BUILD_TYPE=meson CC=clang WITH_DOCS=0 contrib/scripts/nm-ci-run.sh
|
|
|
|
- date '+%Y%m%d-%H%M%S'; ./contrib/fedora/rpm/build_clean.sh -g -w crypto_gnutls -w debug -w iwd -w test
|
|
|
|
- date '+%Y%m%d-%H%M%S'; ./contrib/fedora/rpm/build_clean.sh -g -w crypto_gnutls -w debug -w iwd -w test -w meson
|
2019-02-08 18:01:52 +00:00
|
|
|
- date '+%Y%m%d-%H%M%S'; mv /tmp/nm-docs-html ./docs-html
|
2019-02-04 10:06:21 +00:00
|
|
|
|
2018-10-15 11:17:22 +00:00
|
|
|
checkpatch:
|
|
|
|
image: fedora:28
|
|
|
|
stage: test
|
|
|
|
script:
|
2019-02-08 09:34:56 +00:00
|
|
|
- date '+%Y%m%d-%H%M%S'; dnf install -y git
|
|
|
|
- date '+%Y%m%d-%H%M%S'; contrib/scripts/checkpatch-feature-branch.sh 2>&1 | tee checkpatch-out.txt
|
2018-10-15 11:17:22 +00:00
|
|
|
allow_failure: true
|
|
|
|
artifacts:
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
|
|
|
- checkpatch-out.txt
|
|
|
|
|
2019-02-08 14:44:49 +00:00
|
|
|
build_f28:
|
2018-10-15 11:17:22 +00:00
|
|
|
<<: *fedora_install
|
|
|
|
image: fedora:28
|
2019-02-04 10:06:21 +00:00
|
|
|
<<: *fedora_script
|
2018-10-15 11:17:22 +00:00
|
|
|
artifacts:
|
|
|
|
expire_in: 1 day
|
|
|
|
paths:
|
2019-02-08 06:40:32 +00:00
|
|
|
- docs-html
|
2018-10-15 11:17:22 +00:00
|
|
|
|
2019-04-09 15:48:35 +00:00
|
|
|
build_f29:
|
2019-01-27 14:30:20 +00:00
|
|
|
<<: *fedora_install
|
2019-04-09 15:48:35 +00:00
|
|
|
image: fedora:29
|
2019-02-04 10:06:21 +00:00
|
|
|
<<: *fedora_script
|
2019-01-27 14:30:20 +00:00
|
|
|
|
2019-04-09 15:48:35 +00:00
|
|
|
build_f30:
|
|
|
|
<<: *fedora_install
|
|
|
|
image: fedora:30
|
|
|
|
<<: *fedora_script
|
|
|
|
|
|
|
|
build_frawhide:
|
2019-01-27 14:30:20 +00:00
|
|
|
<<: *fedora_install
|
|
|
|
image: fedora:rawhide
|
2019-02-04 10:06:21 +00:00
|
|
|
<<: *fedora_script
|
2019-01-27 14:30:20 +00:00
|
|
|
allow_failure: true
|
|
|
|
|
2018-10-15 11:17:22 +00:00
|
|
|
pages:
|
|
|
|
stage: deploy
|
|
|
|
dependencies:
|
2019-02-08 14:44:49 +00:00
|
|
|
- build_f28
|
2018-10-15 11:17:22 +00:00
|
|
|
script:
|
|
|
|
- mv docs-html public
|
|
|
|
artifacts:
|
|
|
|
expire_in: 20 days
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
only:
|
|
|
|
- master
|