From 7c2b9c3276794563db967ae8e48f422e2f7c7d2c Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Thu, 11 Oct 2018 15:52:43 -0400 Subject: [PATCH] ci: Add rust-min-version-check Add a check to make sure we stay within the minimum version required to build with DTS, which is updated frequently, but may still lag behind in comparison to Fedora stable. Closes: #1606 Approved by: cgwalters --- .papr.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.papr.yml b/.papr.yml index 47db5d70..dd41b806 100644 --- a/.papr.yml +++ b/.papr.yml @@ -167,3 +167,28 @@ tests: artifacts: - ex-container-logs + +--- + +branches: + - master + - auto + - try + +context: rust-min-version-check +timeout: 30m + +required: true +container: + image: registry.fedoraproject.org/fedora:28 + +env: + # this corresponds to the DTS rustc version we want to support + RUST_MIN_VERSION: 1.26.2 + +tests: + - ci/installdeps.sh + - yum remove -y cargo + - curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain $RUST_MIN_VERSION -y + - PATH=$HOME/.cargo/bin:$PATH sh -c 'cd rust && rustc --version && cargo build' |& tee out.txt + - grep $RUST_MIN_VERSION out.txt