-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
35 lines (30 loc) · 1.32 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
27
28
29
30
31
32
33
34
35
language: php
git:
depth: 1
sudo: false
matrix:
fast_finish: true
include:
- php: 7.0.22
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"
allow_failures:
- php: nightly
install:
- travis_retry composer update $COMPOSER_FLAGS --no-interaction -v
- composer info -D | sort
- 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
- 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