Skip to content

Commit

Permalink
Fix travis builds
Browse files Browse the repository at this point in the history
  • Loading branch information
bpolaszek committed Apr 10, 2019
1 parent b1a681b commit 0cc66fe
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
23 changes: 13 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
language: php

php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- '5.4'
- '5.5'
- '5.6'
- '7.0'
- '7.1'
- '7.2'
- '7.3'

matrix:
include:
- php: 5.3
- php: '5.3'
dist: precise

before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-source --dev
- travis_retry composer global require hirak/prestissimo
- travis_retry composer install --no-interaction --prefer-dist
- travis_retry phpenv rehash

script:
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.3" ]]; then composer require --dev symfony/polyfill-php54; fi
- ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- if [[ $TRAVIS_PHP_VERSION = 5.5.* || $TRAVIS_PHP_VERSION = 5.6.* || $TRAVIS_PHP_VERSION = 7.* ]]; then composer require --dev php-coveralls/php-coveralls; fi
- 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
- ./vendor/bin/phpcs --standard=psr2 -n src/
- mkdir -p build/logs

after_script:
- php vendor/bin/coveralls -v
- php vendor/bin/php-coveralls -v
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@
"php": ">=5.3"
},
"require-dev": {
"phpunit/phpunit": "@stable",
"squizlabs/php_codesniffer": "@stable",
"satooshi/php-coveralls": "@stable",
"phpunit/phpunit": "^4.0|^5.0|^6.0|^7.0",
"squizlabs/php_codesniffer": "^2.0|^3.4",
"symfony/var-dumper": "@stable"
}
}

0 comments on commit 0cc66fe

Please sign in to comment.