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