This repository has been archived by the owner on May 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the Travis config for Code Climate.
- Loading branch information
Showing
1 changed file
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,22 +6,22 @@ php: | |
- hhvm | ||
|
||
before_script: | ||
- travis_retry composer self-update | ||
- travis_retry composer install --no-interaction --prefer-source --dev -o | ||
- wget https://scrutinizer-ci.com/ocular.phar | ||
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ] && [ $(php -r "echo PHP_MINOR_VERSION;") -le 4 ]; then echo "extension = apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi; | ||
- phpenv rehash | ||
- 'travis_retry composer self-update' | ||
- 'travis_retry composer install --no-interaction --prefer-source --dev -o' | ||
- 'wget https://scrutinizer-ci.com/ocular.phar' | ||
- 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ] && [ $(php -r "echo PHP_MINOR_VERSION;") -le 4 ]; then echo "extension = apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;' | ||
- 'phpenv rehash' | ||
|
||
script: | ||
- mkdir -p build/logs | ||
- php vendor/bin/phpunit -c phpunit.xml.dist | ||
- 'mkdir -p build/logs' | ||
- 'php vendor/bin/phpunit -c phpunit.xml.dist' | ||
|
||
after_script: | ||
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then php vendor/bin/coveralls -v; fi; | ||
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then export CODECLIMATE_REPO_TOKEN=c885c52095c8ce924d4ddb51a33b919d2af6e09c73b916857a99327c0bb79f08; php vendor/bin/test-reporter --stdout > codeclimate.json; fi; | ||
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then curl -X POST -d @codeclimate.json -H 'Content-Type: application/json' -H 'User-Agent: Code Climate (PHP Test Reporter v0.1.1)' https://codeclimate.com/test_reportsn; fi; | ||
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi; | ||
- 'if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then php vendor/bin/coveralls -v; fi;' | ||
- 'if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then export CODECLIMATE_REPO_TOKEN=c885c52095c8ce924d4ddb51a33b919d2af6e09c73b916857a99327c0bb79f08; php vendor/bin/test-reporter --stdout > codeclimate.json; fi;' | ||
- 'if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then curl -X POST -d @codeclimate.json -H "Content-Type: application/json" -H "User-Agent: Code Climate (PHP Test Reporter v0.1.1)" https://codeclimate.com/test_reports; fi;' | ||
- 'if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi;' | ||
|
||
notifications: | ||
email: | ||
- [email protected] | ||
- '[email protected]' |