12 # TRAVIS_TOKEN_CLIPPY_SERVICE
13 secure: dj8SwwuRGuzbo2wZq5z7qXIf7P3p7cbSGs1I3pvXQmB6a58gkLiRn/qBcIIegdt/nzXs+Z0Nug+DdesYVeUPxk1hIa/eeU8p6mpyTtZ+30H4QVgVzd0VCthB5F/NUiPVxTgpGpEgCM9/p72xMwTn7AAJfsGqk7AJ4FS5ZZKhqFI=
19 - npm install remark-cli remark-lint
20 # || true, because we cache rustfmt and don't want to crash on the next travis run
21 # due to rustfmt already being installed
22 - (cargo install rustfmt || true)
25 - remark -f README.md > /dev/null
26 - python util/update_lints.py -c
28 - PATH=$PATH:~/.cargo/bin cargo fmt -- --write-mode=diff
29 - cd clippy_lints && PATH=$PATH:~/.cargo/bin cargo fmt -- --write-mode=diff && cd ..
30 - cargo build --features debugging
31 - cargo test --features debugging
32 - mkdir -p ~/rust/cargo/bin
33 - cp target/debug/cargo-clippy ~/rust/cargo/bin/cargo-clippy
34 - PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy
35 - cd clippy_lints && PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy && cd ..
39 # trigger rebuild of the clippy-service, to keep it up to date with clippy itself
43 if [ "$TRAVIS_PULL_REQUEST" == "false" ] &&
44 [ "$TRAVIS_REPO_SLUG" == "Manishearth/rust-clippy" ] &&
45 [ "$TRAVIS_BRANCH" == "master" ] &&
46 [ "$TRAVIS_TOKEN_CLIPPY_SERVICE" != "" ] ; then
49 -H "Content-Type: application/json" \
50 -H "Accept: application/json" \
51 -H "Travis-API-Version: 3" \
52 -H "Authorization: token $TRAVIS_TOKEN_CLIPPY_SERVICE" \
53 -d "{ \"request\": { \"branch\":\"master\" }}" \
54 https://api.travis-ci.org/repo/gnunicorn%2Fclippy-service/requests