gitlab-ci: Add PKG_ONLY
This allows for easy package builds saving resources.
This commit is contained in:
@ -20,6 +20,9 @@ build_docs:
|
|||||||
- apt-get -y install python3-pip python3-sphinx
|
- apt-get -y install python3-pip python3-sphinx
|
||||||
- pip3 install recommonmark
|
- pip3 install recommonmark
|
||||||
- ./doc/build.sh _build
|
- ./doc/build.sh _build
|
||||||
|
except:
|
||||||
|
variables:
|
||||||
|
- $PKG_ONLY == "1"
|
||||||
|
|
||||||
build_meson:
|
build_meson:
|
||||||
stage: build
|
stage: build
|
||||||
@ -31,6 +34,9 @@ build_meson:
|
|||||||
- apt-get -y build-dep .
|
- apt-get -y build-dep .
|
||||||
- meson . _build/ -Ddepdatadir=/usr/share --werror
|
- meson . _build/ -Ddepdatadir=/usr/share --werror
|
||||||
- ninja -C _build install
|
- ninja -C _build install
|
||||||
|
except:
|
||||||
|
variables:
|
||||||
|
- $PKG_ONLY == "1"
|
||||||
|
|
||||||
build_deb:
|
build_deb:
|
||||||
stage: build
|
stage: build
|
||||||
@ -65,6 +71,9 @@ test_lintian:
|
|||||||
script:
|
script:
|
||||||
- apt-get -y install lintian
|
- apt-get -y install lintian
|
||||||
- lintian *.deb
|
- lintian *.deb
|
||||||
|
except:
|
||||||
|
variables:
|
||||||
|
- $PKG_ONLY == "1"
|
||||||
|
|
||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
@ -75,6 +84,9 @@ test:
|
|||||||
- apt-get -y install clang-tidy
|
- apt-get -y install clang-tidy
|
||||||
- ninja -C _build test
|
- ninja -C _build test
|
||||||
- tools/style-check _build
|
- tools/style-check _build
|
||||||
|
except:
|
||||||
|
variables:
|
||||||
|
- $PKG_ONLY == "1"
|
||||||
|
|
||||||
check_release:
|
check_release:
|
||||||
stage: test
|
stage: test
|
||||||
@ -84,3 +96,6 @@ check_release:
|
|||||||
script:
|
script:
|
||||||
- apt-get -y install git python3
|
- apt-get -y install git python3
|
||||||
- (head -n 1 ./debian/changelog && git tag) | ./debian/check_release.py
|
- (head -n 1 ./debian/changelog && git tag) | ./debian/check_release.py
|
||||||
|
except:
|
||||||
|
variables:
|
||||||
|
- $PKG_ONLY == "1"
|
||||||
|
|||||||
Reference in New Issue
Block a user