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
This commit is contained in:
@@ -5,10 +5,15 @@ stages:
|
|||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- apt update || true
|
- 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:
|
build-no-qmi:
|
||||||
stage: build
|
stage: build
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
- merge_requests
|
||||||
|
- tags
|
||||||
|
- schedules
|
||||||
script:
|
script:
|
||||||
- git clone --depth 1 https://gitlab.freedesktop.org/mobile-broadband/libmbim.git
|
- git clone --depth 1 https://gitlab.freedesktop.org/mobile-broadband/libmbim.git
|
||||||
- pushd libmbim
|
- pushd libmbim
|
||||||
@@ -25,6 +30,11 @@ build-no-qmi:
|
|||||||
|
|
||||||
build-no-mbim:
|
build-no-mbim:
|
||||||
stage: build
|
stage: build
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
- merge_requests
|
||||||
|
- tags
|
||||||
|
- schedules
|
||||||
script:
|
script:
|
||||||
- git clone --depth 1 https://gitlab.freedesktop.org/mobile-broadband/libqmi.git
|
- git clone --depth 1 https://gitlab.freedesktop.org/mobile-broadband/libqmi.git
|
||||||
- pushd libqmi
|
- pushd libqmi
|
||||||
@@ -41,6 +51,11 @@ build-no-mbim:
|
|||||||
|
|
||||||
build-no-qmi-no-mbim:
|
build-no-qmi-no-mbim:
|
||||||
stage: build
|
stage: build
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
- merge_requests
|
||||||
|
- tags
|
||||||
|
- schedules
|
||||||
script:
|
script:
|
||||||
- NOCONFIGURE=1 ./autogen.sh
|
- NOCONFIGURE=1 ./autogen.sh
|
||||||
- ./configure --prefix=/tmp/build-no-qmi-no-mbim --disable-gtk-doc --without-qmi --without-mbim
|
- ./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:
|
build-single-plugins:
|
||||||
stage: build
|
stage: build
|
||||||
|
only:
|
||||||
|
- schedules
|
||||||
script:
|
script:
|
||||||
- git clone --depth 1 https://gitlab.freedesktop.org/mobile-broadband/libmbim.git
|
- git clone --depth 1 https://gitlab.freedesktop.org/mobile-broadband/libmbim.git
|
||||||
- pushd libmbim
|
- pushd libmbim
|
||||||
@@ -79,8 +96,15 @@ build-single-plugins:
|
|||||||
|
|
||||||
build-default:
|
build-default:
|
||||||
stage: build
|
stage: build
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
- branches
|
||||||
|
- merge_requests
|
||||||
|
- tags
|
||||||
|
- schedules
|
||||||
|
- pushes
|
||||||
script:
|
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
|
- git clone --depth 1 https://gitlab.freedesktop.org/mobile-broadband/libmbim.git
|
||||||
- pushd libmbim
|
- pushd libmbim
|
||||||
- NOCONFIGURE=1 ./autogen.sh
|
- NOCONFIGURE=1 ./autogen.sh
|
||||||
|
Reference in New Issue
Block a user