CI: refactor .gitlab-ci.yml

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2019-09-13 02:22:52 +02:00
parent eba25e4acc
commit 82be62678a
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -5,26 +5,39 @@ stages:
variables:
FEATURES: ""
rust-latest-build:
stage: build
.stable:
image: rust:latest
.nightly:
image: rustlang/rust:nightly
.build:
stage: build
script:
- cargo build --verbose --no-default-features --features=$FEATURES
.test:
stage: test
script:
- cargo test --verbose --no-default-features --features=$FEATURES
rust-latest-build:
extends:
- .build
- .stable
rust-nightly-build:
stage: build
image: rustlang/rust:nightly
script:
- cargo build --verbose --no-default-features --features=$FEATURES
extends:
- .build
- .nightly
rust-latest-test:
stage: test
image: rust:latest
script:
- cargo test --verbose --no-default-features --features=$FEATURES
extends:
- .test
- .stable
rust-nightly-test:
stage: test
image: rustlang/rust:nightly
script:
- cargo test --verbose --no-default-features --features=$FEATURES
extends:
- .test
- .nightly