forked from belgattitude/php_excel_dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
53 lines (47 loc) · 1.29 KB
/
.travis.yml
File metadata and controls
53 lines (47 loc) · 1.29 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
language: php
cache:
directories:
- vendor
- $HOME/.composer/cache
- .travis/downloads
before_install:
- |
if [ "x$REMOVE_QA" = "xyes" ]; then
composer remove friendsofphp/php-cs-fixer phpstan/phpstan phpstan/phpstan-phpunit phpstan/phpstan-strict-rules --dev --no-interaction $COMPOSER_ARGS;
fi
- |
if [ "x$XDEBUG" != "xyes" ]; then
phpenv config-rm xdebug.ini || true
fi
- |
if [ "x$INSTALL_LIBXL" == "xyes" ]; then
.travis/travis-install-libxl.sh
fi
install:
- |
if [[ "x$DEPS" == "xlowest" ]]; then
travis_retry composer -n update --prefer-dist --prefer-lowest --prefer-stable --no-interaction $COMPOSER_ARGS;
else
travis_retry composer -n update --prefer-dist --no-interaction $COMPOSER_ARGS;
fi
script:
- ./vendor/bin/phpunit -v
jobs:
allow_failures:
- php: nightly
include:
- stage: Test
php: 7.3
env: XDEBUG=yes INSTALL_LIBXL=yes REMOVE_QA=no
- stage: Test
php: 7.2
env: XDEBUG=no INSTALL_LIBXL=yes REMOVE_QA=no
- stage: Test
php: 7.1
env: XDEBUG=no INSTALL_LIBXL=yes REMOVE_QA=no
- stage: PHPStan & CS
php: 7.3
env: XDEBUG=no INSTALL_LIBXL=no REMOVE_QA=no
script:
- composer phpstan
- composer cs-check