From 8b54b7fd43083babdf188e731d6f6c579a3645f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Fri, 13 Sep 2019 03:33:08 +0200 Subject: [PATCH] CI: refactor, add caching MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- .gitlab-ci.yml | 54 +++++++++++++++++++++++++++++++++++--------------- ChangeLog | 2 ++ 2 files changed, 40 insertions(+), 16 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9f74e6dca4c9dc3dca4175f28c3d106d2e7cfc1a..cd0be07974f035ea057fe9f435605d282972c53a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,37 +4,59 @@ stages: variables: FEATURES: "" + RUST_BACKTRACE: "full" -rust-latest-build: - stage: build +.stable: image: rust:latest - script: - - cargo build --verbose --no-default-features --features=$FEATURES + cache: + key: stable + paths: + - target/ -rust-nightly-build: - stage: build +.nightly: image: rustlang/rust:nightly + cache: + key: nightly + paths: + - target/ + +.build: + stage: build script: - cargo build --verbose --no-default-features --features=$FEATURES -rust-latest-test: +.test: stage: test - image: rust:latest script: - cargo test --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: - stage: test - image: rustlang/rust:nightly - script: - - cargo test --verbose --no-default-features --features=$FEATURES + extends: + - .test + - .nightly -"rust-latest-test with features=disable-validation": - extends: rust-latest-test +rust-latest-build with features=disable-validation: + extends: rust-latest-build variables: FEATURES: "disable-validation" -"rust-nightly-test with features=disable-validation": - extends: rust-nightly-test +rust-latest-test with features=disable-validation: + extends: rust-latest-test variables: FEATURES: "disable-validation" diff --git a/ChangeLog b/ChangeLog index 43367a608978f220b79ddfb5d19b4a00e973522e..381e8933ae03738206b530c64882c47642aeb9db 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,8 @@ DATE Emmanuel Gil Peyrot - Anonymous unique occupant identifiers for MUCs (XEP-0421) * Breaking changes: - Presence constructors now take Into and assume Some. + * Improvements: + - CI: refactor, add caching Version 0.15.0: 2019-09-06 Emmanuel Gil Peyrot