-
Notifications
You must be signed in to change notification settings - Fork 55
/
.travis.yml
26 lines (26 loc) · 1.11 KB
/
.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
language: php
matrix:
include:
- php: 5.3
dist: precise
php:
- 5.6
- 7.0
- 7.1
- 7.2
before_script:
- composer install
- cp tests/fixtures.dist.ini tests/fixtures.ini
- cp tests/datacash_magic_numbers.dist.php tests/datacash_magic_numbers.php
script:
- sh -c 'if [ "$TRAVIS_PHP_VERSION" = "5.3" ]; then phpunit tests/; fi;'
- sh -c 'if [ "$TRAVIS_PHP_VERSION" = "5.6" ]; then phpunit tests/; fi;'
- sh -c 'if [ "$TRAVIS_PHP_VERSION" = "7.0" ]; then wget https://phar.phpunit.de/phpunit-5.7.phar && chmod +x phpunit-5.7.phar && php phpunit-5.7.phar tests/; fi;'
- sh -c 'if [ "$TRAVIS_PHP_VERSION" = "7.1" ]; then wget https://phar.phpunit.de/phpunit-5.7.phar && chmod +x phpunit-5.7.phar && php phpunit-5.7.phar tests/; fi;'
- sh -c 'if [ "$TRAVIS_PHP_VERSION" = "7.2" ]; then wget https://phar.phpunit.de/phpunit-5.7.phar && chmod +x phpunit-5.7.phar && php phpunit-5.7.phar tests/; fi;'
after_success:
- php vendor/bin/coveralls
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
notifications:
email: false