Update travis to check clippy

This commit is contained in:
ClementTsang 2020-02-10 00:26:34 -05:00
parent 37b1d93d05
commit f45b2d5711
1 changed files with 4 additions and 1 deletions

View File

@ -23,8 +23,11 @@ before_install:
elif [[ $TRAVIS_OS_NAME == "osx" ]]; then
export TARGET=x86_64-apple-darwin;
fi
before_script: rustup target add $TARGET
before_script:
- rustup target add $TARGET
- rustup component add clippy
script:
- cargo clippy -- -D warnings
- cargo build --verbose --target $TARGET
- cargo test --verbose --target $TARGET