Skip to content
This repository has been archived by the owner on May 26, 2021. It is now read-only.

Commit

Permalink
Updated the Travis config for Code Climate.
Browse files Browse the repository at this point in the history
  • Loading branch information
skyzyx committed Oct 23, 2014
1 parent d8ca1bd commit 4ed37a0
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]'

0 comments on commit 4ed37a0

Please sign in to comment.