Skip to content

Commit d2f2314

Browse files
committed
Attempt to resolve the problem
1 parent b60059f commit d2f2314

File tree

1 file changed

+27
-26
lines changed

1 file changed

+27
-26
lines changed

.cirrus.yml

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ env:
77
BUILD: build
88
RUSTFLAGS: -D warnings
99
RUSTDOCFLAGS: -D warnings
10+
PLUSTOOLCHAIN: +$TOOLCHAIN
1011
TOOL: cargo
1112
# The MSRV
1213
TOOLCHAIN: 1.63.0
@@ -16,21 +17,21 @@ env:
1617
build: &BUILD
1718
build_script:
1819
- . $HOME/.cargo/env || true
19-
- $TOOL +$TOOLCHAIN -Vv
20-
- rustc +$TOOLCHAIN -Vv
21-
- $TOOL +$TOOLCHAIN $BUILD $ZFLAGS --target $TARGET --all-targets
22-
- $TOOL +$TOOLCHAIN doc $ZFLAGS --no-deps --target $TARGET
23-
- $TOOL +$TOOLCHAIN clippy $ZFLAGS --target $TARGET --all-targets -- -D warnings
20+
- $TOOL $PLUSTOOLCHAIN -Vv
21+
- rustc $PLUSTOOLCHAIN -Vv
22+
- $TOOL $PLUSTOOLCHAIN $BUILD $ZFLAGS --target $TARGET --all-targets
23+
- $TOOL $PLUSTOOLCHAIN doc $ZFLAGS --no-deps --target $TARGET
24+
- $TOOL $PLUSTOOLCHAIN clippy $ZFLAGS --target $TARGET --all-targets -- -D warnings
2425
- if [ -z "$NOHACK" ]; then mkdir -p $HOME/.cargo/bin; export PATH=$HOME/.cargo/bin:$PATH; fi
2526
- if [ -z "$NOHACK" ]; then curl -LsSf https://github.com/taiki-e/cargo-hack/releases/latest/download/cargo-hack-${HOST:-$TARGET}.tar.gz | tar xzf - -C ~/.cargo/bin; fi
26-
- if [ -z "$NOHACK" ]; then $TOOL +$TOOLCHAIN hack $ZFLAGS check --target $TARGET --each-feature; fi
27+
- if [ -z "$NOHACK" ]; then $TOOL $PLUSTOOLCHAIN hack $ZFLAGS check --target $TARGET --each-feature; fi
2728

2829
# Tests that do require executing the binaries
2930
test: &TEST
3031
<< : *BUILD
3132
test_script:
3233
- . $HOME/.cargo/env || true
33-
- $TOOL +$TOOLCHAIN test --target $TARGET
34+
- $TOOL $PLUSTOOLCHAIN test --target $TARGET
3435

3536
# Test FreeBSD in a full VM. Test the i686 target too, in the
3637
# same VM. The binary will be built in 32-bit mode, but will execute on a
@@ -165,9 +166,9 @@ task:
165166
image: rust:latest
166167
env:
167168
TARGET: x86_64-unknown-linux-gnu
168-
TOOLCHAIN: stable
169+
TOOLCHAIN:
170+
PLUSTOOLCHAIN:
169171
setup_script:
170-
- rustup toolchain install $TOOLCHAIN --profile minimal --target $TARGET
171172
- rustup component add clippy
172173
- rustup toolchain list
173174
- rustc --version
@@ -294,26 +295,26 @@ task:
294295
#<< : *BUILD
295296
#before_cache_script: rm -rf $CARGO_HOME/registry/index
296297

297-
## Test that we can build with the lowest version of all dependencies.
298-
## "cargo test" doesn't work because some of our dev-dependencies, like
299-
## rand, can't build with their own minimal dependencies.
300-
#task:
301-
#name: Minver
302-
#env:
303-
#HOST: x86_64-unknown-linux-gnu
304-
#TOOLCHAIN: nightly
305-
#container:
306-
#image: rustlang/rust:nightly
307-
#setup_script:
308-
#- cargo update -Zminimal-versions
309-
#check_script:
310-
#- cargo check
311-
#before_cache_script: rm -rf $CARGO_HOME/registry/index
298+
# Test that we can build with the lowest version of all dependencies.
299+
# "cargo test" doesn't work because some of our dev-dependencies, like
300+
# rand, can't build with their own minimal dependencies.
301+
task:
302+
name: Minver
303+
env:
304+
HOST: x86_64-unknown-linux-gnu
305+
TOOLCHAIN: nightly
306+
container:
307+
image: rustlang/rust:nightly
308+
setup_script:
309+
- cargo update -Zminimal-versions
310+
check_script:
311+
- cargo check
312+
before_cache_script: rm -rf $CARGO_HOME/registry/index
312313

313314
## Tasks that checks if the code is formatted right using `cargo fmt` tool
314315
#task:
315316
#name: Rust Formatter
316317
#container:
317318
#image: rust:latest
318-
#setup_script: rustup +$TOOLCHAIN component add rustfmt
319-
#test_script: $TOOL +$TOOLCHAIN fmt --all -- --check **/*.rs
319+
#setup_script: rustup $PLUSTOOLCHAIN component add rustfmt
320+
#test_script: $TOOL $PLUSTOOLCHAIN fmt --all -- --check **/*.rs

0 commit comments

Comments
 (0)