I fail at YAML

This commit is contained in:
Andre Bogus 2017-01-08 17:35:49 +01:00
parent d2738e345a
commit e457cd9c26

View file

@ -42,18 +42,16 @@ script:
- cd clippy_lints && PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy && cd .. - cd clippy_lints && PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy && cd ..
- set +e - set +e
after_success: after_success: |
- |
if [ $(uname) == Linux ]; then if [ $(uname) == Linux ]; then
./.github/deploy.sh ./.github/deploy.sh
# trigger rebuild of the clippy-service, to keep it up to date with clippy itself # trigger rebuild of the clippy-service, to keep it up to date with clippy itself
#!/bin/bash #!/bin/bash
set -e set -e
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && if [ "$TRAVIS_PULL_REQUEST" == "false" ] &&
[ "$TRAVIS_REPO_SLUG" == "Manishearth/rust-clippy" ] && [ "$TRAVIS_REPO_SLUG" == "Manishearth/rust-clippy" ] &&
[ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_BRANCH" == "master" ] &&
[ "$TRAVIS_TOKEN_CLIPPY_SERVICE" != "" ] ; then [ "$TRAVIS_TOKEN_CLIPPY_SERVICE" != "" ] ; then
curl -s -X POST \ curl -s -X POST \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Accept: application/json" \ -H "Accept: application/json" \
@ -61,7 +59,6 @@ after_success:
-H "Authorization: token $TRAVIS_TOKEN_CLIPPY_SERVICE" \ -H "Authorization: token $TRAVIS_TOKEN_CLIPPY_SERVICE" \
-d "{ \"request\": { \"branch\":\"master\" }}" \ -d "{ \"request\": { \"branch\":\"master\" }}" \
https://api.travis-ci.org/repo/gnunicorn%2Fclippy-service/requests https://api.travis-ci.org/repo/gnunicorn%2Fclippy-service/requests
else else
echo "Ignored" echo "Ignored"
fi fi