I’ve wanted to add clippy linting to a Rust project for a while, originally putting it off because I’ve been trying to do all development with stable Rust. But it looks like there are ways to use cargo to run it.
I’m unclear how this would interact with a build matrix that has stable and beta builds. Has anyone done this before and found a simple solution?
My current .travis.yml:
language: rust rust: - stable - beta - nightly install: # Steps copied from the rust-sdl2 project. - wget https://www.libsdl.org/release/SDL2-2.0.4.tar.gz -O sdl2.tar.gz - tar xzf sdl2.tar.gz - pushd SDL2-2.0.4 && ./configure && make && sudo make install && popd # Steps copied from rust-sdl2_mixer project. - wget https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.1.tar.gz -O sdl2_mixer.tar.gz - tar xzf sdl2_mixer.tar.gz - pushd SDL2_mixer-2.0.1 && ./configure && make && sudo make install && popd matrix: allow_failures: - rust: nightly os: - linux - osx script: - cargo build --verbose