Modify CI script to run clippy instead of check

This commit is contained in:
yanchith
2020-01-17 16:30:12 +01:00
parent ab205b042c
commit b6215db57d

View File

@@ -60,9 +60,11 @@ before_install:
script:
- cargo test
# TODO: enable GL backend
- (cd wgpu-core && cargo check --all-features)
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then (cd wgpu-native && cargo check --features vulkan-portability); fi
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then cargo check --release; fi
- (cd wgpu-core && cargo clippy --all-features)
- (cd wgpu-native && cargo clippy)
- (cd wgpu-remote && cargo clippy --all-features)
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then (cd wgpu-native && cargo clippy --features vulkan-portability); fi
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then cargo clippy --release; fi
- if [[ $TRAVIS_RUST_VERSION == "nightly" ]]; then cargo +nightly install cbindgen; fi
- if [[ $TRAVIS_RUST_VERSION == "nightly" ]] && [[ $TRAVIS_OS_NAME == "windows" ]]; then
wget -nc -O glfw.zip https://github.com/glfw/glfw/archive/3.3.zip &&