diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6d0f13a..a501899 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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/