Seperated the pipelines for nightly and stable rust builds.
This commit is contained in:
parent
e02edfd53b
commit
6b689f4635
@ -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.
|
# 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.
|
# You will often need this when you (or any of your dependencies) depends on C code.
|
||||||
# before_script:
|
# before_script:
|
||||||
@ -22,15 +7,22 @@ image: "rustlang/rust:nightly"
|
|||||||
variables:
|
variables:
|
||||||
RUSTFLAGS: "-C link-dead-code"
|
RUSTFLAGS: "-C link-dead-code"
|
||||||
|
|
||||||
build:cargo:
|
test:stable:
|
||||||
|
# Stable img
|
||||||
|
image: "rust"
|
||||||
script:
|
script:
|
||||||
- rustc --version && cargo --version # Print version info for debugging
|
- rustc --version && cargo --version # Print version info for debugging
|
||||||
- cargo build
|
- cargo build
|
||||||
|
- cargo test --verbose
|
||||||
|
|
||||||
# Use cargo to test the project
|
# Use cargo to test the project
|
||||||
test:cargo:
|
test:nightly:
|
||||||
|
# Nightly
|
||||||
|
# https://hub.docker.com/r/rustlang/rust/
|
||||||
|
image: "rustlang/rust:nightly"
|
||||||
script:
|
script:
|
||||||
- rustc --version && cargo --version # Print version info for debugging
|
- rustc --version && cargo --version # Print version info for debugging
|
||||||
|
- cargo build
|
||||||
- cargo test --verbose
|
- cargo test --verbose
|
||||||
# - cargo test --verbose --jobs 1 --release # Don't paralize to make errors more readable
|
# - cargo test --verbose --jobs 1 --release # Don't paralize to make errors more readable
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user