aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2019-11-22 13:59:45 +0100
committerAleksander Morgado <aleksander@aleksander.es>2019-11-27 10:11:43 +0000
commit792f15648ca30a15097c7c90c4ebfd1cc0a13d30 (patch)
treebc225beb63ce83a41a286d451b337cbe57091ff3
parentc4991165c262d3e8cc1c1cac3c5a63cce9aaf524 (diff)
ci: redefine when jobs are run
* single-plugin builds only on schedules * with/without qmi/mbim builds on master and merge requests * default build always, including on branches and when git pushing
-rw-r--r--.gitlab-ci.yml28
1 files changed, 26 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c075ba96..24b9009e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,10 +5,15 @@ stages:
before_script:
- apt update || true
- - apt -y install autoconf automake libtool libglib2.0-dev libgudev-1.0-dev libgettextpo-dev autopoint xsltproc dbus autoconf-archive
+ - apt -y install autoconf automake libtool libglib2.0-dev libgudev-1.0-dev libgettextpo-dev autopoint xsltproc dbus autoconf-archive gettext
build-no-qmi:
stage: build
+ only:
+ - master
+ - merge_requests
+ - tags
+ - schedules
script:
- git clone --depth 1 https://gitlab.freedesktop.org/mobile-broadband/libmbim.git
- pushd libmbim
@@ -25,6 +30,11 @@ build-no-qmi:
build-no-mbim:
stage: build
+ only:
+ - master
+ - merge_requests
+ - tags
+ - schedules
script:
- git clone --depth 1 https://gitlab.freedesktop.org/mobile-broadband/libqmi.git
- pushd libqmi
@@ -41,6 +51,11 @@ build-no-mbim:
build-no-qmi-no-mbim:
stage: build
+ only:
+ - master
+ - merge_requests
+ - tags
+ - schedules
script:
- NOCONFIGURE=1 ./autogen.sh
- ./configure --prefix=/tmp/build-no-qmi-no-mbim --disable-gtk-doc --without-qmi --without-mbim
@@ -50,6 +65,8 @@ build-no-qmi-no-mbim:
build-single-plugins:
stage: build
+ only:
+ - schedules
script:
- git clone --depth 1 https://gitlab.freedesktop.org/mobile-broadband/libmbim.git
- pushd libmbim
@@ -79,8 +96,15 @@ build-single-plugins:
build-default:
stage: build
+ only:
+ - master
+ - branches
+ - merge_requests
+ - tags
+ - schedules
+ - pushes
script:
- - apt -y install autopoint gettext gtk-doc-tools gobject-introspection libgirepository1.0-dev libsystemd-dev libpolkit-gobject-1-dev libglib2.0-doc valac
+ - apt -y install gtk-doc-tools libglib2.0-doc gobject-introspection libgirepository1.0-dev libsystemd-dev libpolkit-gobject-1-dev valac
- git clone --depth 1 https://gitlab.freedesktop.org/mobile-broadband/libmbim.git
- pushd libmbim
- NOCONFIGURE=1 ./autogen.sh