From bcd7f59c64f92745f36dd6afd88fd2b30d8aa57e Mon Sep 17 00:00:00 2001 From: Padraic Brady Date: Sun, 15 Feb 2015 12:45:00 +0000 Subject: [PATCH] Extract after_script.sh --- .travis.yml | 5 +---- travis/after_script.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100755 travis/after_script.sh diff --git a/.travis.yml b/.travis.yml index 62fd95f01..ea2b78abd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,10 +33,7 @@ script: - ./travis/script.sh after_script: - - if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]] && [[ "$TRAVIS_PHP_VERSION" != "hhvm-nightly" ]]; then vendor/bin/coveralls -v; fi - - if [[ "$TRAVIS_PHP_VERSION" == "5.6" ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi - - if [[ "$TRAVIS_PHP_VERSION" == "5.6" ]]; then php ocular.phar code-coverage:upload --format=php-clover ./build/logs/clover.xml; fi - + - ./travis/after_script.sh notifications: email: - padraic.brady@gmail.com diff --git a/travis/after_script.sh b/travis/after_script.sh new file mode 100755 index 000000000..1fb981d49 --- /dev/null +++ b/travis/after_script.sh @@ -0,0 +1,12 @@ +#!/bin/bash +if [[ "$TRAVIS_PHP_VERSION" != "hhvm" && "$TRAVIS_PHP_VERSION" != "hhvm-nightly" ]]; then + vendor/bin/coveralls -v +fi + +if [[ "$TRAVIS_PHP_VERSION" == "5.6" ]]; then + wget https://scrutinizer-ci.com/ocular.phar +fi + +if [[ "$TRAVIS_PHP_VERSION" == "5.6" ]]; then + php ocular.phar code-coverage:upload --format=php-clover ./build/logs/clover.xml +fi \ No newline at end of file