gitlabci: use meson to test the build instead of cargo.
This commit is contained in:
parent
4535c3005d
commit
cc052eb450
@ -1,30 +1,26 @@
|
|||||||
stages:
|
stages:
|
||||||
# meson uses cargo to do the build
|
|
||||||
# so it's ok to have the tests first.
|
|
||||||
- test
|
- test
|
||||||
# - build
|
|
||||||
- lint
|
- lint
|
||||||
|
|
||||||
before_script:
|
|
||||||
- apt-get update -yqq
|
|
||||||
- apt-get install -yqq --no-install-recommends build-essential
|
|
||||||
- apt-get install -yqq --no-install-recommends libgtk-3-dev
|
|
||||||
# - apt-get install -yqq --no-install-recommends meson
|
|
||||||
|
|
||||||
.cargo_test_template: &cargo_test
|
|
||||||
stage: test
|
|
||||||
script:
|
|
||||||
- rustc --version && cargo --version
|
|
||||||
# Force regeneration of gresources regardless of artifacts chage
|
|
||||||
- cd hammond-gtk/resources/ && glib-compile-resources --generate resources.xml && cd ../../
|
|
||||||
- cargo build
|
|
||||||
- cargo test --verbose -- --test-threads=1
|
|
||||||
- cargo test --verbose -- --test-threads=1 --ignored
|
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
# RUSTFLAGS: "-C link-dead-code"
|
# RUSTFLAGS: "-C link-dead-code"
|
||||||
RUST_BACKTRACE: "FULL"
|
RUST_BACKTRACE: "FULL"
|
||||||
CARGO_HOME: $CI_PROJECT_DIR/cargo
|
|
||||||
|
.cargo_test_template: &cargo_test
|
||||||
|
stage: test
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- apt-get update -yqq
|
||||||
|
- apt-get install -yqq --no-install-recommends build-essential libgtk-3-dev meson
|
||||||
|
script:
|
||||||
|
- rustc -Vv && cargo -Vv
|
||||||
|
# Force regeneration of gresources regardless of artifacts chage
|
||||||
|
- cd hammond-gtk/resources/ && glib-compile-resources --generate resources.xml && cd ../../
|
||||||
|
|
||||||
|
- ./configure --prefix=/usr/local
|
||||||
|
- make
|
||||||
|
- cargo test --release -- --test-threads=1
|
||||||
|
- cargo test --release -- --test-threads=1 --ignored
|
||||||
|
|
||||||
stable:test:
|
stable:test:
|
||||||
# https://hub.docker.com/_/rust/
|
# https://hub.docker.com/_/rust/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user