Reconfigure CI
This commit is contained in:
parent
c25f4f3d30
commit
377dca1304
|
@ -1,25 +1,66 @@
|
||||||
before_script:
|
image: "rust:latest"
|
||||||
- apt-get update -qq
|
|
||||||
- apt-get install -qq build-essential curl git
|
|
||||||
- curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable
|
|
||||||
- source "$HOME/.cargo/env"
|
|
||||||
|
|
||||||
stable:
|
stages:
|
||||||
|
- build
|
||||||
|
- test
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- rustup toolchain add $toolchain
|
||||||
|
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- target/
|
||||||
|
|
||||||
|
build:stable:
|
||||||
|
stage: build
|
||||||
|
variables:
|
||||||
|
toolchain: stable
|
||||||
script:
|
script:
|
||||||
- cargo +stable build --verbose
|
- cargo +stable build --verbose
|
||||||
|
- cargo +stable build --release --verbose
|
||||||
|
|
||||||
|
test:stable:
|
||||||
|
stage: test
|
||||||
|
variables:
|
||||||
|
toolchain: stable
|
||||||
|
dependencies:
|
||||||
|
- build:stable
|
||||||
|
script:
|
||||||
- script -q -c "cargo +stable test --verbose"
|
- script -q -c "cargo +stable test --verbose"
|
||||||
- script -q -c "cargo +stable test --release --verbose"
|
- script -q -c "cargo +stable test --release --verbose"
|
||||||
|
|
||||||
beta:
|
build:beta:
|
||||||
|
stage: build
|
||||||
|
variables:
|
||||||
|
toolchain: beta
|
||||||
script:
|
script:
|
||||||
- rustup toolchain add beta
|
|
||||||
- cargo +beta build --verbose
|
- cargo +beta build --verbose
|
||||||
|
- cargo +beta build --release --verbose
|
||||||
|
|
||||||
|
test:beta:
|
||||||
|
stage: test
|
||||||
|
variables:
|
||||||
|
toolchain: beta
|
||||||
|
dependencies:
|
||||||
|
- build:beta
|
||||||
|
script:
|
||||||
- script -q -c "cargo +beta test --verbose"
|
- script -q -c "cargo +beta test --verbose"
|
||||||
- script -q -c "cargo +beta test --release --verbose"
|
- script -q -c "cargo +beta test --release --verbose"
|
||||||
|
|
||||||
nightly:
|
build:nightly:
|
||||||
|
stage: build
|
||||||
|
variables:
|
||||||
|
toolchain: nightly
|
||||||
script:
|
script:
|
||||||
- rustup toolchain add nightly
|
- cargo +nightly build --verbose
|
||||||
- cargo +nightly build --verbose
|
- cargo +nightly build --release --verbose
|
||||||
- script -q -c "cargo +nightly test --verbose"
|
|
||||||
- script -q -c "cargo +nightly test --release --verbose"
|
test:nightly:
|
||||||
|
stage: test
|
||||||
|
variables:
|
||||||
|
toolchain: nightly
|
||||||
|
dependencies:
|
||||||
|
- build:nightly
|
||||||
|
script:
|
||||||
|
- script -q -c "cargo +nightly test --verbose"
|
||||||
|
- script -q -c "cargo +nightly test --release --verbose"
|
Loading…
Reference in New Issue