Seperated the pipelines for nightly and stable rust builds.

This commit is contained in:
Jordan Petridis 2017-10-02 19:03:29 +03:00
parent e02edfd53b
commit 6b689f4635
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6

View File

@ -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