Skip to content

Commit

Permalink
Still working on travis configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
rbairwell committed Dec 31, 2015
1 parent 2e379d8 commit e1a0c1f
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,15 @@ matrix:
allow_failures:
- php: nightly

before_install:
- composer self-update

install: composer update $COMPOSER_FLAGS

before_script:
- if [[ "$TRAVIS_PHP_VERSION" == '5.6' ]]; then composer require satooshi/php-coveralls:dev-master squizlabs/php_codesniffer:2.* -n ; fi
- if [[ "$TRAVIS_PHP_VERSION" != '5.6' ]]; then composer install -n ; fi
install:
- composer install -n
- composer require --dev satooshi/php-coveralls -n

script:
- if [[ "$TRAVIS_PHP_VERSION" == '5.6' ]]; then mkdir -p build/logs && phpunit --coverage-clover build/logs/clover.xml ; fi
- if [[ "$TRAVIS_PHP_VERSION" != '5.6' ]]; then phpunit ; fi
- if [[ "$TRAVIS_PHP_VERSION" == '5.6' ]]; then vendor/bin/phpcs --ignore=vendor/* -n -p . ; fi
mkdir -p build/logs
phpunit --coverage-clover build/logs/clover.xml
vendor/bin/phpcs

after_script:
- if [[ "$TRAVIS_PHP_VERSION" == '5.6' ]]; then php vendor/bin/coveralls -v ; fi
after_success:
- travis_retry php vendor/bin/coveralls -v

0 comments on commit e1a0c1f

Please sign in to comment.