fractal/.gitlab-ci.yml

40 lines
950 B
YAML
Raw Normal View History

2017-11-12 11:32:08 +00:00
stages:
- test
2017-12-22 20:22:32 +00:00
variables:
RUST_BACKTRACE: "FULL"
CARGO_HOME: $CI_PROJECT_DIR/cargo
2017-11-12 11:32:08 +00:00
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 libgmp-dev
# - apt-get install -yqq --no-install-recommends meson
.cargo_test_template: &cargo_test
stage: test
2017-11-12 11:32:08 +00:00
script:
- rustc --version && cargo --version
# Force regeneration of gresources regardless of artifacts chage
2018-01-11 18:03:04 +00:00
- cd fractal-gtk/res/ && glib-compile-resources --generate resources.xml && cd ../../
- cargo build
- cargo test --verbose -- --test-threads=1
2018-01-11 18:43:45 +00:00
# cache:
# paths:
# - target/
# - cargo/
2017-11-12 11:32:08 +00:00
test:stable:
# Stable img
# https://hub.docker.com/_/rust/
image: "rust"
<<: *cargo_test
# test:nightly:
# # Nightly
# # https://hub.docker.com/r/rustlang/rust/
# image: "rustlang/rust:nightly"
# <<: *cargo_test
2017-11-12 11:32:08 +00:00