Shorten the test phase in the CI

This commit is contained in:
Roey Darwish Dror
2019-01-21 22:38:47 +02:00
parent fad9cc665c
commit f33d0e6936
2 changed files with 4 additions and 10 deletions

View File

@@ -20,17 +20,14 @@ install:
- rustup-init.exe -y --default-host %TARGET% --default-toolchain %RUST_VERSION% - rustup-init.exe -y --default-host %TARGET% --default-toolchain %RUST_VERSION%
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- rustup component add rustfmt-preview clippy-preview - rustup component add rustfmt-preview clippy-preview
- cargo fmt --all -- --check
- cargo clippy --all-targets --all-features -- -D warnings
- rustc -Vv - rustc -Vv
- cargo -V - cargo -V
test_script: test_script:
- if [%APPVEYOR_REPO_TAG%]==[false] ( - if [%APPVEYOR_REPO_TAG%]==[false] (
cargo check --target %TARGET% && cargo fmt --all -- --check &&
cargo check --target %TARGET% --release && cargo clippy --all-targets --all-features -- -D warnings &&
cargo check --target %TARGET% --all-features && cargo clippy --all-targets -- -D warnings
cargo check --target %TARGET% --all-features --release
) )
before_deploy: before_deploy:

View File

@@ -5,11 +5,8 @@ set -ex
# TODO This is the "test phase", tweak it as you see fit # TODO This is the "test phase", tweak it as you see fit
main() { main() {
cargo fmt --all -- --check cargo fmt --all -- --check
cross clippy --all-targets -- -D warnings
cross clippy --all-targets --all-features -- -D warnings cross clippy --all-targets --all-features -- -D warnings
cross check --target $TARGET
cross check --target $TARGET --release
cross check --target $TARGET --all-features
cross check --target $TARGET --release --all-features
if [ ! -z $DISABLE_TESTS ]; then if [ ! -z $DISABLE_TESTS ]; then
return return