Skip to content

Commit

Permalink
Travis - add PHP 7.2, stop testing on HHVM, echo $TRAVIS_PHP_VERSION,…
Browse files Browse the repository at this point in the history
… reenable CS and deps tests.
  • Loading branch information
SpacePossum committed Jan 3, 2018
1 parent e640fd5 commit 174f6fc
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,24 @@ matrix:
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
- php: 7.1
env: COMPOSER_FLAGS="--prefer-stable"
- php: 7.2
env: COMPOSER_FLAGS="--prefer-stable"
- php: nightly
env: COMPOSER_FLAGS="--dev"
- php: hhvm-nightly
sudo: required
dist: trusty
group: edge
env: COMPOSER_FLAGS="--dev"
allow_failures:
- php: nightly
- php: hhvm-nightly

install:
- travis_retry composer update $COMPOSER_FLAGS --no-interaction -v
- composer info -D | sort
- if [[ $TRAVIS_PHP_VERSION = 7.0 ]]; then curl -L https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.9.0/php-cs-fixer.phar -o php-cs-fixer.phar; fi
- if [[ $TRAVIS_PHP_VERSION = 7.0 ]]; then curl -L https://github.com/maglnet/ComposerRequireChecker/releases/download/0.1.5/composer-require-checker.phar -o composer-require-checker.phar; fi
- if [[ $TRAVIS_PHP_VERSION = 7.0.22 ]]; then curl -L https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.9.0/php-cs-fixer.phar -o php-cs-fixer.phar; fi
- if [[ $TRAVIS_PHP_VERSION = 7.0.22 ]]; then curl -L https://github.com/maglnet/ComposerRequireChecker/releases/download/0.1.5/composer-require-checker.phar -o composer-require-checker.phar; fi

script:
- chmod 755 tests/assets/dir
- chmod 644 tests/assets/dir/test_file.txt
- phpenv config-rm xdebug.ini || return 0
- vendor/bin/phpunit --verbose
- if [[ $TRAVIS_PHP_VERSION = 7.0 ]]; then php php-cs-fixer.phar fix --dry-run -vvv; fi
- if [[ $TRAVIS_PHP_VERSION = 7.0 ]]; then php composer-require-checker.phar check --config-file=$TRAVIS_BUILD_DIR/.composer-require-checker.json -vvv; fi
- echo $TRAVIS_PHP_VERSION
- if [[ $TRAVIS_PHP_VERSION = 7.0.22 ]]; then php php-cs-fixer.phar fix --dry-run -vvv; fi
- if [[ $TRAVIS_PHP_VERSION = 7.0.22 ]]; then php composer-require-checker.phar check --config-file=$TRAVIS_BUILD_DIR/.composer-require-checker.json -vvv; fi

0 comments on commit 174f6fc

Please sign in to comment.