From 12de955a4790c1d0a125e327d148ad278154f8f6 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Wed, 26 Mar 2014 13:56:02 -0600 Subject: [PATCH] Post cppcheck results to pull request --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 34155ed9..088697f4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,7 +24,7 @@ after_script: - echo -n '{ "body": " ' > output.json - echo -n `awk '{printf "%s\\\\n", $0;}' output` >> output.json - echo -n '"}' >> output.json -- if [ "${TRAVIS_PULL_REQUEST}" = "true" ]; then curl -H "Authorization: token ${TOKEN}" --request POST --data @output.json https://api.github.com/repos/ChaiScript/ChaiScript/commits/${TRAVIS_COMMIT}/comments; fi +- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then curl -H "Authorization: token ${TOKEN}" --request POST --data @output.json https://api.github.com/repos/ChaiScript/ChaiScript/commits/${TRAVIS_COMMIT}/comments; else curl -H "Authorization: token ${TOKEN}" --request POST --data @output.json https://api.github.com/repos/ChaiScript/ChaiScript/issues/${TRAVIS_PULL_REQUEST}/comments; fi notifications: recipients: - jason@emptycrate.com