18 # TRAVIS_TOKEN_CLIPPY_SERVICE
19 secure: dj8SwwuRGuzbo2wZq5z7qXIf7P3p7cbSGs1I3pvXQmB6a58gkLiRn/qBcIIegdt/nzXs+Z0Nug+DdesYVeUPxk1hIa/eeU8p6mpyTtZ+30H4QVgVzd0VCthB5F/NUiPVxTgpGpEgCM9/p72xMwTn7AAJfsGqk7AJ4FS5ZZKhqFI=
25 - npm install remark-cli remark-lint
28 - PATH=$PATH:./node_modules/.bin
29 - remark -f README.md > /dev/null
31 - cargo build --features debugging
32 - cargo test --features debugging
33 - mkdir -p ~/rust/cargo/bin
34 - cp target/debug/cargo-clippy ~/rust/cargo/bin/cargo-clippy
35 - PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy
36 - cd clippy_lints && PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy && cd ..
41 if [ $(uname) == Linux ]; then
43 # trigger rebuild of the clippy-service, to keep it up to date with clippy itself
45 if [ "$TRAVIS_PULL_REQUEST" == "false" ] &&
46 [ "$TRAVIS_REPO_SLUG" == "Manishearth/rust-clippy" ] &&
47 [ "$TRAVIS_BRANCH" == "master" ] &&
48 [ "$TRAVIS_TOKEN_CLIPPY_SERVICE" != "" ] ; then
50 -H "Content-Type: application/json" \
51 -H "Accept: application/json" \
52 -H "Travis-API-Version: 3" \
53 -H "Authorization: token $TRAVIS_TOKEN_CLIPPY_SERVICE" \
54 -d "{ \"request\": { \"branch\":\"master\" }}" \
55 https://api.travis-ci.org/repo/gnunicorn%2Fclippy-service/requests