summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
Commit message (Collapse)AuthorAgeFilesLines
* gitlab-ci: workaround build failure in Debian:sid due to iproute2 issueThomas Haller2019-07-121-0/+4
| | | | | | | | | | | | | Our platform unit tests try to add an IP tunnel using iproute2. That fails with "add tunnel "ip6tnl0" failed: File exists" This is a bug in iproute2-5.2.0, see [1]. Workaround the issue by downgrading the package. [1] https://www.spinics.net/lists/netdev/msg584916.html
* gitlab-ci: add manual build step to test on ubuntu:rolling and ubuntu:develThomas Haller2019-07-121-0/+12
| | | | | | | | | | Rolling is the latest release (regardless of whether LTS), currently that would be 19.04. Devel is the next release, currently that would be 19.10. Add manual build steps to trigger those builds so we can manually verify that they pass.
* gitlab-ci: enable test build on Debian 10 (buster)Thomas Haller2019-07-101-0/+5
|
* gitlab-ci: also build on CentOS 7.5 and 7.6th/gitlab-ci-centosThomas Haller2019-05-291-8/+30
|
* gitlab-ci: run "checkpatch" test on Fedora 29 imageThomas Haller2019-05-291-1/+1
| | | | | Fedora 28 is no longer supported at this point. Run the "checkpatch" test on a Fedora 29 image instead.
* gitlab-ci: run unit tests under valgrind in gitlab-ciThomas Haller2019-05-181-2/+6
| | | | | | | | On Ubuntu 16.04 (trusty) valgrind fails due to rdrand being advertised but not implemented. Work around that by installing valgrind from Ubuntu 18.04 (bionic) via the "contrib/scripts/nm-ci-install-valgrind-in-ubuntu1604.sh" script.
* gitlab-ci: install glib2-doc via "contrib/fedora/REQUIRED_PACKAGES"Thomas Haller2019-04-201-0/+5
| | | | | | | | | | | | | We also generate a source tarball and artifact it. Hence, we need proper gtk-doc links. This requires files in /usr/share/gtk-doc/html for adding cross links. Install glib2-doc package. Note that in containers dnf is configured to not install documentation files. We need to override that. (cherry picked from commit a0f31e4038d29c9055a42a1ea8f95ae7fd648579)
* gitlab-ci: don't use "test && cmd" in build stepThomas Haller2019-04-201-2/+2
| | | | | | | | | | We don't want stesp to return an error, which is what "test && cmd" does, if the test evaluates to false. Instead, use "! test || cmd" which has more the semantics that we want. (cherry picked from commit 2a2c58339b0007578026c6fb8dda824c0a76883d)
* gitlab-ci: build release tarball and artifact itThomas Haller2019-04-191-6/+13
| | | | (cherry picked from commit 84e19c6ca9a921bb780d9109a93e338f50ede7eb)
* gitlab-ci: build on Ubuntu 16.04, 18.04 and Debian stretch (9), testing, sidThomas Haller2019-04-191-18/+57
| | | | | https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/119 (cherry picked from commit 1ca380f69fe2c4958a557d5aaeff32b46c343cf9)
* gitlab-ci: add test on Fedora 30 imageThomas Haller2019-04-091-3/+8
| | | | | | And no longer use "fedora:lastest". While "fedora:rawhide" names the very latest branch (and we want to test that), for all proper releases we want name them explicitly.
* gitlab-ci: print information about test environment in testsThomas Haller2019-04-041-0/+2
| | | | It's just interesting to see in the logs.
* gitlab-ci: rename build-jobs in gitlab-ciThomas Haller2019-02-091-4/+4
| | | | It just looks nicer.
* gitlab-ci: fix moving docs-htmlThomas Haller2019-02-081-2/+2
| | | | | Seems .git directory is somehow shared/cached between CI runs. Use /tmp instead.
* gitlab-ci: log timestamp of test stepsThomas Haller2019-02-081-14/+14
|
* gitlab-ci: fix generating pagesThomas Haller2019-02-081-10/+7
| | | | Fixes: bdac03fe9a8def21ef16bdd7bd0497dab83fbb1f
* gitlab-ci: build with clang and do multiple builds in one test-stepThomas Haller2019-02-071-37/+24
| | | | | | | | | | | | | Also, let one docker image do multiple builds. We fetch a fedora docker image, and then install 250 MB of packages. That alone takes a lot of time and resources. Instead of running a large number of docker images that only do one build, let one image do several builds. Also, install ccache. Hopefully this way we can benefit from building the same sources multiple times. Also note that building docs does not work currently with clang, due to g-ir-scanner. See commit 05568860cce5332977d92b85f7c25b8ed646cd58.
* gitlab-ci: add test with Fedora:latest imageThomas Haller2019-01-271-0/+15
|
* gitlab-ci: patch gtk-doc to generate valid documentationThomas Haller2018-12-011-0/+1
| | | | | | | | | We generate documentation for pages ([1], [2]), hence, we need to patch gtk-doc [3]. [1] https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/ [2] https://networkmanager.pages.freedesktop.org/NetworkManager/libnm/ [3] https://gitlab.gnome.org/GNOME/gtk-doc/merge_requests/2
* ci: use common script for tests on travis and gitlabThomas Haller2018-11-121-30/+12
| | | | | | | | | | | | | | For one, it's not unreasonable that we want to run the same tests both for gitlab and travis. Move the actual tests into a script, which is called by both CI environments. We still can do something different, based on the environment. The advantage here is, that the common part will be shared, and the places where we differ can easily be spot. https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/44
* gitlab: add .gitlab-ci.yml for gitlab CIThomas Haller2018-10-221-0/+91
See-also: https://docs.gitlab.com/ee/ci/yaml/