| 1 |
stages: |
| 2 |
- compile |
| 3 |
- test |
| 4 |
|
| 5 |
compile: |
| 6 |
stage: compile |
| 7 |
image: liuchong/rustup:$RUST_VERSION |
| 8 |
script: |
| 9 |
- cargo build |
| 10 |
cache: |
| 11 |
key: "$CI_COMMIT_REF_SLUG:$RUST_VERSION" |
| 12 |
paths: |
| 13 |
- target/ |
| 14 |
parallel: |
| 15 |
matrix: |
| 16 |
- RUST_VERSION: |
| 17 |
- stable |
| 18 |
- stable-musl |
| 19 |
- beta |
| 20 |
- beta-musl |
| 21 |
- nightly |
| 22 |
- nightly-musl |
| 23 |
|
| 24 |
test: |
| 25 |
stage: test |
| 26 |
image: liuchong/rustup:$RUST_VERSION |
| 27 |
script: |
| 28 |
- cargo test |
| 29 |
- cargo test --no-default-features |
| 30 |
- cargo test --no-default-features --features alloc |
| 31 |
- cargo test --no-default-features --features std |
| 32 |
- cargo test --no-default-features --features serde |
| 33 |
cache: |
| 34 |
key: "$CI_COMMIT_REF_SLUG:$RUST_VERSION" |
| 35 |
paths: |
| 36 |
- target/ |
| 37 |
needs: |
| 38 |
- compile |
| 39 |
parallel: |
| 40 |
matrix: |
| 41 |
- RUST_VERSION: |
| 42 |
- stable |
| 43 |
- stable-musl |
| 44 |
- beta |
| 45 |
- beta-musl |
| 46 |
- nightly |
| 47 |
- nightly-musl |