Skip to content

Commit

Permalink
Minor test improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
mike42 committed Nov 4, 2016
1 parent 1ff5cba commit fc68a95
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .travis.yml
Expand Up @@ -7,24 +7,32 @@ php:
- 5.5
- 5.6
- 7.0
- 7.1
- hhvm
- nightly

matrix:
allow_failures:
- php: nightly
- php:
- nightly

install:
- composer install

before_script:
# Install 'imagick' plugin (pecl will not install it on 5.3, hhvm does not use pecl)
- sh -c "if [ $TRAVIS_PHP_VERSION != 'hhvm' ] && [ $TRAVIS_PHP_VERSION != '5.3' ]; then printf "\n" | pecl install imagick; fi"
# Directory for coverage report
- mkdir -p build/logs/

script:
# Check code style
- php vendor/bin/phpcs --standard=psr2 src/ -n
# Run tests
- php vendor/bin/phpunit --coverage-clover build/logs/clover.xml

after_success:
# Upload coverage statistics to coveralls service after test
- wget -c -nc https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
- php coveralls.phar -v
...

0 comments on commit fc68a95

Please sign in to comment.