forked from mike42/escpos-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (31 loc) · 829 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- hhvm
- nightly
matrix:
allow_failures:
- 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
...