Update CI config to use redoxer

This commit is contained in:
Jeremy Soller 2019-07-06 11:48:52 -06:00
parent 68d765305c
commit 1008f2021b
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1
1 changed files with 29 additions and 56 deletions

View File

@ -1,66 +1,39 @@
image: "rust:latest" image: "redoxos/redoxer"
stages: stages:
- build - build
- test - test
before_script:
- rustup toolchain add $toolchain
cache: cache:
paths: paths:
- target/ - target/
build:stable: build:linux:stable:
stage: build stage: build
variables: script: cargo +stable build --verbose
toolchain: stable
script:
- cargo +stable build --verbose
- cargo +stable build --release --verbose
test:stable: build:linux:
stage: test stage: build
variables: script: cargo +nightly build --verbose
toolchain: stable
dependencies:
- build:stable
script:
- script -q -c "cargo +stable test --verbose"
- script -q -c "cargo +stable test --release --verbose"
build:beta: build:redox:
stage: build stage: build
variables: script: redoxer build --verbose
toolchain: beta
script:
- cargo +beta build --verbose
- cargo +beta build --release --verbose
test:beta: test:linux:stable:
stage: test stage: test
variables: dependencies:
toolchain: beta - build:linux:stable
dependencies: script: cargo +stable test --verbose
- build:beta
script:
- script -q -c "cargo +beta test --verbose"
- script -q -c "cargo +beta test --release --verbose"
build:nightly: test:linux:
stage: build stage: test
variables: dependencies:
toolchain: nightly - build:linux
script: script: cargo +nightly test --verbose
- cargo +nightly build --verbose
- cargo +nightly build --release --verbose
test:nightly: test:redox:
stage: test stage: test
variables: dependencies:
toolchain: nightly - build:redox
dependencies: script: redoxer test --verbose
- build:nightly
script:
- script -q -c "cargo +nightly test --verbose"
- script -q -c "cargo +nightly test --release --verbose"