Skip to content

Commit 07c7fcb

Browse files
authored
Merge pull request mike42#214 from mike42/ci-imagick
Test improvements
2 parents 1ff5cba + fc68a95 commit 07c7fcb

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.travis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,32 @@ php:
77
- 5.5
88
- 5.6
99
- 7.0
10+
- 7.1
1011
- hhvm
1112
- nightly
1213

1314
matrix:
1415
allow_failures:
15-
- php: nightly
16+
- php:
17+
- nightly
1618

1719
install:
1820
- composer install
1921

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

2328
script:
29+
# Check code style
2430
- php vendor/bin/phpcs --standard=psr2 src/ -n
31+
# Run tests
2532
- php vendor/bin/phpunit --coverage-clover build/logs/clover.xml
2633

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

0 commit comments

Comments
 (0)