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
This commit is contained in:
Jonathan Lebon 2018-10-11 15:52:43 -04:00 committed by Atomic Bot
parent e15baebc68
commit 7c2b9c3276

View File

@ -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