| 1 |
cache: |
| 2 |
key: ${CI_COMMIT_REF_SLUG} |
| 3 |
paths: |
| 4 |
- target/ |
| 5 |
|
| 6 |
|
| 7 |
- cargo_home/bin/ |
| 8 |
- cargo_home/registry/index/ |
| 9 |
- cargo_home/registry/cache/ |
| 10 |
- cargo_home/git/db/ |
| 11 |
|
| 12 |
stages: |
| 13 |
- check |
| 14 |
|
| 15 |
before_script: |
| 16 |
- export CARGO_HOME="$PWD/cargo_home" |
| 17 |
- mkdir -p $CARGO_HOME |
| 18 |
|
| 19 |
check: |
| 20 |
image: "rust:latest" |
| 21 |
stage: check |
| 22 |
before_script: |
| 23 |
- export PATH="$CARGO_HOME/bin:$PATH" |
| 24 |
script: |
| 25 |
- cargo check |
| 26 |
- cargo test |
| 27 |
- cargo test --features fast |
| 28 |
- cargo test --no-default-features |
| 29 |
- cargo test --no-default-features --features fast |