From 7a0ba4f39d247dff4e2a496a68d910d2f957f9d3 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:10:06 +0200 Subject: [PATCH] CI: Import .gitlab-ci.yml from xmpp-rs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- .gitlab-ci.yml | 56 +++++++++++++++++++++++++++++++++++++++++++------- CHANGELOG.md | 3 ++- 2 files changed, 51 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c02e04ce..bc899d9f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,10 +1,52 @@ -image: "pitkley/rust:nightly" +stages: + - build + - test -before_script: -- apt-get update -yqq -- apt-get install -yqq --no-install-recommends build-essential +variables: + FEATURES: "" + RUST_BACKTRACE: "full" -test:cargo: +.stable: + image: rust:latest + cache: + key: stable + paths: + - target/ + +.nightly: + image: rustlang/rust:nightly + cache: + key: nightly + paths: + - target/ + +.build: + stage: build script: - - rustc --version && cargo --version - - cargo test --verbose --jobs 1 --release + - cargo build --verbose --no-default-features --features=$FEATURES + +.test: + stage: test + 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: + extends: + - .test + - .nightly diff --git a/CHANGELOG.md b/CHANGELOG.md index f9d098f8..275c0e69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,12 @@ Version XXX, released YYY: * Changes * Update edition to 2018 + * Fixes + * Update old CI configuration with newer Rust images Version 0.11.1, released 2019-09-06: * Changes * Update to quick-xml 0.16 * Add a default "comments" feature to transform comments into errors when unset. - * Remove the mostly-unused failure dependency, to dramatically reduce compilation times. Version 0.11.0, released 2019-06-14: * Breaking * Get rid of IntoElements, replace with `Into` and ` IntoIterator>`