CI: split into test/deploy jobs
This allows us to ensure the builds are actually working before merging things
This commit is contained in:
parent
5e9f5c8d26
commit
e238f517ac
|
@ -1,16 +1,25 @@
|
||||||
variables:
|
image: 'registry.fedoraproject.org/fedora:31'
|
||||||
FEDORA_DEPS: rust cargo git meson ninja-build
|
|
||||||
|
before_script:
|
||||||
|
- dnf update -y
|
||||||
|
- dnf install -y rust cargo git meson ninja-build glib2-devel gtk3-devel gobject-introspection-devel xorg-x11-server-Xvfb
|
||||||
|
- meson _build --prefix=/usr -Dlibhandy:vapi=false
|
||||||
|
- ninja -C _build install
|
||||||
|
- git submodule update --init
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- test
|
||||||
|
- deploy
|
||||||
|
|
||||||
|
build:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- cargo build --all-features
|
||||||
|
- xvfb-run -a -s "-screen 0 1024x768x24" cargo test
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
image: 'registry.fedoraproject.org/fedora:31'
|
|
||||||
stage: deploy
|
stage: deploy
|
||||||
before_script:
|
|
||||||
- dnf update -y
|
|
||||||
- dnf install -y $FEDORA_DEPS
|
|
||||||
- meson --prefix=/usr _build
|
|
||||||
- ninja -C _build install
|
|
||||||
script:
|
script:
|
||||||
- git submodule update --init
|
|
||||||
- cargo doc -p libhandy --features=['dox', 'v0_0_12']
|
- cargo doc -p libhandy --features=['dox', 'v0_0_12']
|
||||||
- mv target/doc/ public
|
- mv target/doc/ public
|
||||||
artifacts:
|
artifacts:
|
||||||
|
@ -18,4 +27,4 @@ pages:
|
||||||
- public
|
- public
|
||||||
only:
|
only:
|
||||||
refs:
|
refs:
|
||||||
- master
|
- master
|
Loading…
Reference in a new issue