CI: refactor, add caching

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2019-09-13 03:33:08 +02:00
parent c7038ace1a
commit 8b54b7fd43
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2
2 changed files with 46 additions and 22 deletions

View file

@ -4,37 +4,59 @@ stages:
variables: variables:
FEATURES: "" FEATURES: ""
RUST_BACKTRACE: "full"
.stable:
image: rust:latest
cache:
key: stable
paths:
- target/
.nightly:
image: rustlang/rust:nightly
cache:
key: nightly
paths:
- target/
.build:
stage: build
script:
- cargo build --verbose --no-default-features --features=$FEATURES
.test:
stage: test
script:
- cargo test --verbose --no-default-features --features=$FEATURES
rust-latest-build: rust-latest-build:
stage: build extends:
image: rust:latest - .build
script: - .stable
- cargo build --verbose --no-default-features --features=$FEATURES
rust-nightly-build: rust-nightly-build:
stage: build extends:
image: rustlang/rust:nightly - .build
script: - .nightly
- cargo build --verbose --no-default-features --features=$FEATURES
rust-latest-test: rust-latest-test:
stage: test extends:
image: rust:latest - .test
script: - .stable
- cargo test --verbose --no-default-features --features=$FEATURES
rust-nightly-test: rust-nightly-test:
stage: test extends:
image: rustlang/rust:nightly - .test
script: - .nightly
- cargo test --verbose --no-default-features --features=$FEATURES
"rust-latest-test with features=disable-validation": rust-latest-build with features=disable-validation:
extends: rust-latest-build
variables:
FEATURES: "disable-validation"
rust-latest-test with features=disable-validation:
extends: rust-latest-test extends: rust-latest-test
variables: variables:
FEATURES: "disable-validation" FEATURES: "disable-validation"
"rust-nightly-test with features=disable-validation":
extends: rust-nightly-test
variables:
FEATURES: "disable-validation"

View file

@ -8,6 +8,8 @@ DATE Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
- Anonymous unique occupant identifiers for MUCs (XEP-0421) - Anonymous unique occupant identifiers for MUCs (XEP-0421)
* Breaking changes: * Breaking changes:
- Presence constructors now take Into<Jid> and assume Some. - Presence constructors now take Into<Jid> and assume Some.
* Improvements:
- CI: refactor, add caching
Version 0.15.0: Version 0.15.0:
2019-09-06 Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> 2019-09-06 Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>