From 6b689f4635864455e7a1e4dd6c0d23f6f20e046a Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Mon, 2 Oct 2017 19:03:29 +0300 Subject: [PATCH] Seperated the pipelines for nightly and stable rust builds. --- .gitlab-ci.yml | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1fe0d42..88e5b42 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,18 +1,3 @@ -# Stable img -# image: "rust" - -# Nightly -# https://hub.docker.com/r/rustlang/rust/ -image: "rustlang/rust:nightly" - -# Optional: Pick zero or more services to be used on all builds. -# Only needed when using a docker container to run your tests in. -# Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-a-service -#services: -# - mysql:latest -# - redis:latest -# - postgres:latest - # Optional: Install a C compiler, cmake and git into the container. # You will often need this when you (or any of your dependencies) depends on C code. # before_script: @@ -22,15 +7,22 @@ image: "rustlang/rust:nightly" variables: RUSTFLAGS: "-C link-dead-code" -build:cargo: +test:stable: + # Stable img + image: "rust" script: - rustc --version && cargo --version # Print version info for debugging - cargo build + - cargo test --verbose # Use cargo to test the project -test:cargo: +test:nightly: + # Nightly + # https://hub.docker.com/r/rustlang/rust/ + image: "rustlang/rust:nightly" script: - rustc --version && cargo --version # Print version info for debugging + - cargo build - cargo test --verbose # - cargo test --verbose --jobs 1 --release # Don't paralize to make errors more readable