termion/.gitlab-ci.yml

66 lines
1.2 KiB
YAML
Raw Normal View History

2018-08-20 23:19:19 +01:00
image: "rust:latest"
stages:
- build
- test
2018-06-10 06:16:45 +01:00
before_script:
2018-08-20 23:19:19 +01:00
- rustup toolchain add $toolchain
cache:
paths:
- target/
2018-06-10 06:16:45 +01:00
2018-08-20 23:19:19 +01:00
build:stable:
stage: build
variables:
toolchain: stable
2018-06-10 06:16:45 +01:00
script:
2018-06-10 06:55:53 +01:00
- cargo +stable build --verbose
2018-08-20 23:19:19 +01:00
- 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 --release --verbose"
2018-06-10 06:16:45 +01:00
2018-08-20 23:19:19 +01:00
build:beta:
stage: build
variables:
toolchain: beta
2018-06-10 06:55:53 +01:00
script:
- cargo +beta build --verbose
2018-08-20 23:19:19 +01:00
- 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 --release --verbose"
2018-06-10 06:55:53 +01:00
2018-08-20 23:19:19 +01:00
build:nightly:
stage: build
variables:
toolchain: nightly
script:
- cargo +nightly build --verbose
- cargo +nightly build --release --verbose
test:nightly:
stage: test
variables:
toolchain: nightly
dependencies:
- build:nightly
2018-06-10 06:55:53 +01:00
script:
2018-08-20 23:19:19 +01:00
- script -q -c "cargo +nightly test --verbose"
- script -q -c "cargo +nightly test --release --verbose"