From 0d2916d47f2a70c389a1cd248df04d3b5151831c Mon Sep 17 00:00:00 2001 From: Sean Johnson Date: Mon, 31 Oct 2016 16:23:38 -0500 Subject: [PATCH] Add Slack notifications for Travis builds (#208) --- .travis.yml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.travis.yml b/.travis.yml index b50b894..353a20a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,19 +1,20 @@ language: php - php: - - 5.5 - - 5.6 - - 7.0 - - hhvm - +- 5.5 +- 5.6 +- 7.0 +- hhvm before_install: - - travis_retry composer self-update - +- travis_retry composer self-update install: - - travis_retry composer install - - travis_retry composer require --dev 'phpunit/php-code-coverage=^2.2.4' - +- travis_retry composer install +- travis_retry composer require --dev 'phpunit/php-code-coverage=^2.2.4' script: - - phpunit -c phpunit.xml.dist --testsuite unit --coverage-text - - phpunit -c phpunit.xml.dist --testsuite functional --coverage-text - - '[[ "${TRAVIS_PULL_REQUEST}" == "false" ]] && ( phpunit -c phpunit.xml.dist --testsuite integration --coverage-text ) || ( echo "Testing PR - No integration tests available")' +- phpunit -c phpunit.xml.dist --testsuite unit --coverage-text +- phpunit -c phpunit.xml.dist --testsuite functional --coverage-text +- '[[ "${TRAVIS_PULL_REQUEST}" == "false" ]] && ( phpunit -c phpunit.xml.dist --testsuite + integration --coverage-text ) || ( echo "Testing PR - No integration tests available")' +notifications: + slack: + rooms: + secure: Xa/LYWGRDOt1Gjw10YTgYmVriSt/MSDOuzqoqQ8OWekJp05C2oRTor8dztEATTM4HQSLrwTa8CTnkFyD8+Z4fbnuvQ0dJ4j5CJYs5AjyirEWwblqS0PIATEEGKffDocsMh4VyMEPSwWXZY319bvG79mUq0E57VmT3y2ROMUuuec=