gitlabci: use meson to test the build instead of cargo.

This commit is contained in:
Jordan Petridis 2018-03-13 07:03:31 +02:00
parent 4535c3005d
commit cc052eb450
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6

View File

@ -1,30 +1,26 @@
stages:
# meson uses cargo to do the build
# so it's ok to have the tests first.
- test
# - build
- 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:
# RUSTFLAGS: "-C link-dead-code"
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:
# https://hub.docker.com/_/rust/