-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
81 lines (70 loc) · 2.38 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
language: php
cache:
directories:
- vendor
- $HOME/.composer/cache
- .travis/downloads
- .travis/ffmpeg-release-64bit-static
before_install:
- |
if [ "x$REMOVE_QA" = "xyes" ]; then
composer remove vimeo/psalm infection/infection friendsofphp/php-cs-fixer phpstan/phpstan-symfony phpstan/phpstan-webmozart-assert phpstan/phpstan phpstan/phpstan-phpunit phpstan/phpstan-strict-rules --dev --no-interaction $COMPOSER_ARGS;
fi
- |
if [ "x$XDEBUG" != "xyes" ]; then
mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || true
fi
- |
if [ "x$INSTALL_FFMPEG" == "xyes" ]; then
.travis/travis-install-ffmpeg.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
jobs:
allow_failures:
- php: nightly
- stage: Psalm
include:
- stage: Tests
php: 7.3
env: XDEBUG=yes INSTALL_FFMPEG=yes REMOVE_QA=yes
script:
- ./vendor/bin/phpunit -v -c .travis/phpunit.xml --coverage-clover=coverage.xml
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.xml
- bash <(curl -s https://codecov.io/bash)
- stage: Tests
php: 7.2
env: INSTALL_FFMPEG=yes DEPS=lowest REMOVE_QA=yes
script:
- composer remove phpunit/phpunit
- composer require --dev phpunit/phpunit
- ./vendor/bin/phpunit -v -c .travis/phpunit.xml
- stage: Tests
php: 7.1
env: INSTALL_FFMPEG=yes DEPS=lowest REMOVE_QA=yes
script:
- composer remove phpunit/phpunit
- composer require --dev phpunit/phpunit
- ./vendor/bin/phpunit -v -c .travis/phpunit.xml
- stage: Tests
php: nightly
env: COMPOSER_ARGS=--ignore-platform-reqs REMOVE_QA=yes
script:
- ./vendor/bin/phpunit --testsuite unit -v -c .travis/phpunit.xml
- stage: PHPStan and Code style
php: 7.3
env: XDEBUG=no INSTALL_FFMPEG=no REMOVE_QA=no
script:
- composer phpstan
- composer cs-check
- stage: Psalm
php: 7.3
env: XDEBUG=no INSTALL_FFMPEG=no REMOVE_QA=no
script:
- composer psalm