]> git.lizzy.rs Git - rust.git/blob - .travis.yml
322e03258d49207f13effd88be12f359d8ce6865
[rust.git] / .travis.yml
1 language: rust
2 rust: nightly
3 sudo: false
4
5 script:
6  - python util/update_lints.py -c
7  - cargo build --features debugging
8  - rm -rf target/ Cargo.lock
9  - cargo test --features debugging
10
11  # only test regex_macros if it compiles
12  - if [[ "$(cargo build --features 'debugging test-regex_macros')" = 101 ]]; then cargo test --features 'debugging test-regex_macros'; fi
13
14 # trigger rebuild of the clippy-service
15 after_success:
16 - |
17     #!/bin/bash
18     set -e
19     if [ "$TRAVIS_PULL_REQUEST" == "false" ] &&
20        [ "$TRAVIS_REPO_SLUG" == "Manishearth/rust-clippy" ] &&
21        [ "$TRAVIS_BRANCH" == "master" ] &&
22        [ "$TRAVIS_TOKEN_CLIPPY_SERVICE" != "" ] ; then
23
24        curl -s -X POST \
25             -H "Content-Type: application/json" \
26             -H "Accept: application/json" \
27             -H "Travis-API-Version: 3" \
28             -H "Authorization: token $TRAVIS_TOKEN_CLIPPY_SERVICE" \
29             -d "{ \"request\": { \"branch\":\"master\" }}" \
30             https://api.travis-ci.org/repo/ligthyear%2Fclippy-service/requests
31
32     else
33       echo "Ignored"
34     fi