CI: Refactor: split jobs, add tests, and caching
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
59e0e75d69
commit
d5f6c181af
2 changed files with 59 additions and 9 deletions
|
|
@ -1,16 +1,62 @@
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
- test
|
||||||
|
|
||||||
rust-latest:
|
variables:
|
||||||
stage: build
|
FEATURES: ""
|
||||||
|
RUST_BACKTRACE: "full"
|
||||||
|
|
||||||
|
.stable:
|
||||||
image: rust:latest
|
image: rust:latest
|
||||||
script:
|
cache:
|
||||||
- cargo build --verbose --features=minidom
|
key: stable
|
||||||
- cargo test --lib --verbose --features=minidom
|
paths:
|
||||||
|
- target/
|
||||||
|
|
||||||
rust-nightly:
|
.nightly:
|
||||||
stage: build
|
|
||||||
image: rustlang/rust:nightly
|
image: rustlang/rust:nightly
|
||||||
|
cache:
|
||||||
|
key: nightly
|
||||||
|
paths:
|
||||||
|
- target/
|
||||||
|
|
||||||
|
.build:
|
||||||
|
stage: build
|
||||||
script:
|
script:
|
||||||
- cargo build --verbose --features=minidom
|
- cargo build --verbose --no-default-features --features=$FEATURES
|
||||||
- cargo test --lib --verbose --features=minidom
|
|
||||||
|
.test:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- cargo test --lib --verbose --no-default-features --features=$FEATURES
|
||||||
|
|
||||||
|
rust-latest-build:
|
||||||
|
extends:
|
||||||
|
- .build
|
||||||
|
- .stable
|
||||||
|
|
||||||
|
rust-nightly-build:
|
||||||
|
extends:
|
||||||
|
- .build
|
||||||
|
- .nightly
|
||||||
|
|
||||||
|
|
||||||
|
rust-latest-test:
|
||||||
|
extends:
|
||||||
|
- .test
|
||||||
|
- .stable
|
||||||
|
|
||||||
|
rust-nightly-test:
|
||||||
|
extends:
|
||||||
|
- .test
|
||||||
|
- .nightly
|
||||||
|
|
||||||
|
rust-latest-build with features=minidom:
|
||||||
|
extends: rust-latest-build
|
||||||
|
variables:
|
||||||
|
FEATURES: "minidom"
|
||||||
|
|
||||||
|
rust-latest-test with features=minidom:
|
||||||
|
extends: rust-latest-test
|
||||||
|
variables:
|
||||||
|
FEATURES: "minidom"
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
Version XXX, released YYY:
|
||||||
|
* Updates
|
||||||
|
- CI: Split jobs, add tests, and caching
|
||||||
|
|
||||||
Version 0.7.2, released 2019-09-13:
|
Version 0.7.2, released 2019-09-13:
|
||||||
* Updates
|
* Updates
|
||||||
- Impl Error for JidParseError again, it got removed due to the failure removal but is still wanted.
|
- Impl Error for JidParseError again, it got removed due to the failure removal but is still wanted.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue