Skip to content

Commit 0cc66fe

Browse files
committed
Fix travis builds
1 parent b1a681b commit 0cc66fe

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

.travis.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,31 @@
11
language: php
22

33
php:
4-
- 5.4
5-
- 5.5
6-
- 5.6
7-
- 7.0
8-
- 7.1
9-
- 7.2
4+
- '5.4'
5+
- '5.5'
6+
- '5.6'
7+
- '7.0'
8+
- '7.1'
9+
- '7.2'
10+
- '7.3'
1011

1112
matrix:
1213
include:
13-
- php: 5.3
14+
- php: '5.3'
1415
dist: precise
1516

1617
before_script:
1718
- travis_retry composer self-update
18-
- travis_retry composer install --no-interaction --prefer-source --dev
19+
- travis_retry composer global require hirak/prestissimo
20+
- travis_retry composer install --no-interaction --prefer-dist
1921
- travis_retry phpenv rehash
2022

2123
script:
2224
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.3" ]]; then composer require --dev symfony/polyfill-php54; fi
23-
- ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
25+
- if [[ $TRAVIS_PHP_VERSION = 5.5.* || $TRAVIS_PHP_VERSION = 5.6.* || $TRAVIS_PHP_VERSION = 7.* ]]; then composer require --dev php-coveralls/php-coveralls; fi
26+
- if [[ $TRAVIS_PHP_VERSION = 5.5.* || $TRAVIS_PHP_VERSION = 5.6.* || $TRAVIS_PHP_VERSION = 7.* ]]; then ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml; else ./vendor/bin/phpunit; fi
2427
- ./vendor/bin/phpcs --standard=psr2 -n src/
2528
- mkdir -p build/logs
2629

2730
after_script:
28-
- php vendor/bin/coveralls -v
31+
- php vendor/bin/php-coveralls -v

composer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818
"php": ">=5.3"
1919
},
2020
"require-dev": {
21-
"phpunit/phpunit": "@stable",
22-
"squizlabs/php_codesniffer": "@stable",
23-
"satooshi/php-coveralls": "@stable",
21+
"phpunit/phpunit": "^4.0|^5.0|^6.0|^7.0",
22+
"squizlabs/php_codesniffer": "^2.0|^3.4",
2423
"symfony/var-dumper": "@stable"
2524
}
2625
}

0 commit comments

Comments
 (0)