Attempt to fix GitLab CI

This commit is contained in:
Michael Aaron Murphy 2018-06-10 05:55:53 +00:00
parent 96b1196ff3
commit 5c584dbeaf
1 changed files with 26 additions and 8 deletions

View File

@ -1,16 +1,34 @@
before_script:
- apt-get update -qq
- apt-get install -qq build-essential curl git
- curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
- curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable
- source "$HOME/.cargo/env"
- rustup toolchain add stable
build_stable:
script:
- cargo +stable build --verbose
test_stable:
script:
- bash -c "cargo test --verbose"
- bash -c "cargo test --release --verbose"
build_beta:
script:
- rustup toolchain add beta
- cargo +beta build --verbose
build:
test_beta:
script:
- cargo build --verbose
- bash -c "cargo +beta test --verbose"
- bash -c "cargo +beta test --release --verbose"
test:
build_nightly:
script:
- cargo test --verbose
- cargo test --release --verbose
- rustup toolchain add nightly
- cargo +nightly build --verbose
test_nightly:
script:
- bash -c "cargo +nightly test --verbose"
- bash -c "cargo +nightly test --release --verbose"