File tree Expand file tree Collapse file tree 3 files changed +12
-18
lines changed Expand file tree Collapse file tree 3 files changed +12
-18
lines changed Original file line number Diff line number Diff line change @@ -68,26 +68,30 @@ matrix:
68
68
69
69
install :
70
70
- sh rustup-init.sh --default-toolchain=stable -y
71
- - export PATH="$PATH:$ HOME/.cargo/bin"
71
+ - . "$ HOME" /.cargo/env
72
72
- if [ -z "$NO_ADD" ]; then rustup target add "$TARGET"; fi
73
- - rustup component add rustfmt
74
73
75
74
script :
76
75
- mkdir -p target/"$TARGET";
77
76
- >
78
77
case "$TARGET" in
79
- *-linux-android) DOCKER=android ;; # Android uses a local docker image
80
- *-linux-androideabi) DOCKER=android ;;
81
- *-apple-darwin) ;;
82
- *) DOCKER=$TARGET ;;
78
+ *-linux-android*) DOCKER=android ;; # Android uses a local docker image
79
+ *-apple-darwin) ;;
80
+ *) DOCKER="$TARGET" ;;
83
81
esac;
84
82
if [ -n "$DOCKER" ]; then
85
- sh ci/build-run-docker.sh "$DOCKER" "$TARGET" "$SKIP_TESTS";
83
+ sh ci/build-run-docker.sh "$DOCKER" "$TARGET" "$SKIP_TESTS";
86
84
else
87
- PATH="$HOME/rust/bin:$PATH" sh ci/run.sh;
85
+ sh ci/run.sh;
88
86
fi
87
+
88
+ # Check the formatting last because test failures are more interesting to have
89
+ # discovered for contributors lacking some platform access for testing beforehand
89
90
- if [ "${TARGET}" = x86_64-unknown-linux-gnu ]; then
90
91
shellcheck -s dash -e SC1090 -- rustup-init.sh ci/*.sh;
92
+ rustup component add rustfmt;
93
+ rustfmt -vV;
94
+ cargo fmt --all -- --check;
91
95
fi
92
96
93
97
before_deploy :
Original file line number Diff line number Diff line change @@ -57,21 +57,16 @@ install:
57
57
# add mingw to PATH if necessary
58
58
- if defined MINGW_DIR set PATH=C:\msys64\%MINGW_DIR%\bin;C:\msys64\usr\bin;%PATH%
59
59
60
- # Add rustfmt support
61
- - rustup component add rustfmt
62
-
63
60
# let's see what we got
64
61
- where gcc rustc cargo
65
62
- rustc -vV
66
63
- cargo -vV
67
- - rustfmt -vV
68
64
69
65
build : false
70
66
71
67
test_script :
72
68
- cargo build --release --target %TARGET% --locked
73
69
- cargo test --release --target %TARGET%
74
- - cargo fmt --all -- --check
75
70
76
71
notifications :
77
72
- provider : Webhook
Original file line number Diff line number Diff line change @@ -4,15 +4,10 @@ set -ex
4
4
5
5
rustc -vV
6
6
cargo -vV
7
- rustfmt -vV
8
7
9
8
cargo build --locked -v --release --target " $TARGET " --features vendored-openssl
10
9
11
10
if [ -z " $SKIP_TESTS " ]; then
12
11
cargo test --release -p download --target " $TARGET " --features vendored-openssl
13
12
cargo test --release --target " $TARGET " --features vendored-openssl
14
13
fi
15
-
16
- # Check the formatting last because test failures are more interesting to have
17
- # discovered for contributors lacking some platform access for testing beforehand
18
- cargo fmt --all -- --check
You can’t perform that action at this time.
0 commit comments