Skip to content

Commit

Permalink
Travis: PHP 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
vasa-c committed Jan 12, 2018
1 parent 9f940da commit f2e5d30
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ language: php
matrix:
include:
- php: 5.4
env: CHECKS=yes
env: CHECKS=yes PU4=yes
- php: 5.5
env: PU4=yes
- php: 5.6
- php: 7
- php: 7.0
- php: 7.1
- php: 7.2
- php: hhvm

sudo: false
Expand All @@ -30,8 +33,7 @@ before_install:
- if [ "$XDEBUG_ENABLED" = "yes" ]; then mv $XDEBUG_INI xdebug.ini; fi;
# Travis container may contain outdated version of composer
- composer self-update
# Checks if the system phpunit is broken (sometimes it happens). Then install phpunit from composer.
- phpunit --version || PHPUNIT_BROKEN="yes"

# Info
- if [ "$CHECKS" = "yes" ]; then echo "Checks mode"; else echo "Normal mode"; fi;
- if [ "$XDEBUG_ENABLED" = "yes" ]; then echo "XDebug is supported"; else echo "XDebug is not supported"; fi;
Expand All @@ -41,13 +43,14 @@ install:
# Composer can not used dist (github required the auth token). Just specify prefer-source.
- composer install --prefer-source
# In order not to litter in the local dev-version specify checks-packages here instead composer.json
- if [ "$PHPUNIT_BROKEN" = "yes" ]; then composer require phpunit/phpunit --prefer-source; fi;
- if [ "$PHPUNIT_BROKEN" = "yes" ]; then PU="php vendor/bin/phpunit"; else PU=phpunit; fi;
- if [ "$PU4" = "yes" ]; then PU_VER="^4"; else PU_VER="^5"; fi;
- composer require phpunit/phpunit=$PU_VER --prefer-source
- PU="php vendor/bin/phpunit"
- if [ "$CHECKS" = "yes" ]; then composer require squizlabs/php_codesniffer="~2.3" --prefer-source; fi;
- if [ "$CHECKS" = "yes" ]; then composer require satooshi/php-coveralls --dev --prefer-source; fi;
# Generate the coveralls config (not to keep it in the repo)
- >
if [ "$CHECKS" = "yes" ]; then
if [ "$CHECKS" = "yes" ]; then
echo "json_path: coveralls-upload.json" >> .coveralls.yml &&
echo "coverage_clover: clover.xml" >> .coveralls.yml;
fi;
Expand Down

0 comments on commit f2e5d30

Please sign in to comment.