termion/.gitlab-ci.yml

34 lines
797 B
YAML
Raw Normal View History

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