File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -10,3 +10,25 @@ script:
10
10
11
11
# only test regex_macros if it compiles
12
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
You can’t perform that action at this time.
0 commit comments