7 # TRAVIS_TOKEN_CLIPPY_SERVICE
8 secure: dj8SwwuRGuzbo2wZq5z7qXIf7P3p7cbSGs1I3pvXQmB6a58gkLiRn/qBcIIegdt/nzXs+Z0Nug+DdesYVeUPxk1hIa/eeU8p6mpyTtZ+30H4QVgVzd0VCthB5F/NUiPVxTgpGpEgCM9/p72xMwTn7AAJfsGqk7AJ4FS5ZZKhqFI=
14 - npm install remark remark-lint
17 - remark -f README.md -u remark-lint > /dev/null
18 - python util/update_lints.py -c
19 - cargo build --features debugging
20 - rm -rf target/ Cargo.lock
21 - cargo test --features debugging
24 # only test regex_macros if it compiles
27 cargo test --no-run --features 'debugging test-regex_macros'
28 if [ "$?" != 101 ]; then
29 cargo test --features 'debugging test-regex_macros' compile_test
31 # trigger rebuild of the clippy-service, to keep it up to date with clippy itself
35 if [ "$TRAVIS_PULL_REQUEST" == "false" ] &&
36 [ "$TRAVIS_REPO_SLUG" == "Manishearth/rust-clippy" ] &&
37 [ "$TRAVIS_BRANCH" == "master" ] &&
38 [ "$TRAVIS_TOKEN_CLIPPY_SERVICE" != "" ] ; then
41 -H "Content-Type: application/json" \
42 -H "Accept: application/json" \
43 -H "Travis-API-Version: 3" \
44 -H "Authorization: token $TRAVIS_TOKEN_CLIPPY_SERVICE" \
45 -d "{ \"request\": { \"branch\":\"master\" }}" \
46 https://api.travis-ci.org/repo/ligthyear%2Fclippy-service/requests