Skip to content

Commit

Permalink
Extract after_script.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
padraic committed Feb 15, 2015
1 parent 1d44f44 commit bcd7f59
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions travis/after_script.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit bcd7f59

Please sign in to comment.