Skip to content

Commit 2797f6c

Browse files
committed
Use nightly for -Z but use MSRV=stable for test
1 parent 3fa032b commit 2797f6c

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.travis.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,17 @@ matrix:
2626
ALT=i686-unknown-linux-gnu
2727
rust: beta
2828

29+
# Minimum Rust supported channel. We enable these to make sure we
30+
# continue to work on the advertised minimum Rust version.
31+
# However cargo only supports the latest stable so this will get
32+
# increased every 6 weeks or so when the first PR to use a new feature.
2933
- env: TARGET=x86_64-unknown-linux-gnu
3034
ALT=i686-unknown-linux-gnu
31-
rust: nightly
35+
rust: 1.27.2
3236
script:
33-
- cargo generate-lockfile -Z minimal-versions
37+
- rustup toolchain install nightly
38+
- cargo +nightly generate-lockfile -Z minimal-versions
39+
- cargo -V
3440
- cargo check --tests
3541

3642
- env: TARGET=x86_64-unknown-linux-gnu

appveyor.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ install:
1212
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
1313
- rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain nightly
1414
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
15+
- if defined MINIMAL_VERSIONS rustup toolchain install stable
1516
- rustup target add %OTHER_TARGET%
1617
- rustc -V
1718
- cargo -V
@@ -22,5 +23,5 @@ clone_depth: 1
2223
build: false
2324

2425
test_script:
25-
- if defined MINIMAL_VERSIONS cargo generate-lockfile -Z minimal-versions && cargo check --tests
26+
- if defined MINIMAL_VERSIONS cargo +nightly generate-lockfile -Z minimal-versions && cargo +stable check --tests
2627
- if NOT defined MINIMAL_VERSIONS cargo test

0 commit comments

Comments
 (0)