Skip to content

Commit

Permalink
Update .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
albaizq authored Feb 8, 2017
1 parent 0271e51 commit fefb94c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ notifications:
on_failure: never

script:
- curl -i -X POST -d $TRAVIS_REPO_SLUG http://vicinity.iot.linkeddata.es/reqmanager/rest/hook/;
- response=$(curl -i -X POST -d $TRAVIS_REPO_SLUG http://vicinity.iot.linkeddata.es/reqmanager/rest/test/);
- echo ${response}
- if [${response} == *'WARNING'*]; then
exit(1)
fi
- if [[ $TRAVIS_EVENT_TYPE == "pull_request" ]]; then
curl -i -X POST -d $TRAVIS_REPO_SLUG http://vicinity.iot.linkeddata.es/reqmanager/rest/hook/ &&
curl -i -X POST -d $TRAVIS_REPO_SLUG http://vicinity.iot.linkeddata.es/reqmanager/rest/hook &&
response=$(curl -i -X POST -d $TRAVIS_REPO_SLUG http://vicinity.iot.linkeddata.es/reqmanager/rest/test/) && echo ${response} &&
if [[ ${response} == *"WARNING"* ]] || [[ ${response} == *"ERROR"* ]]; then
exit 1;
fi;
fi

0 comments on commit fefb94c

Please sign in to comment.