-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (47 loc) · 1.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
language: php
sudo: required
cache:
directories:
- vendor
- $HOME/.composer/cache
before_install:
- |
if [ "x$XDEBUG" != "xyes" ]; then
mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || true
fi
install:
- |
if [ "x$IGNORE_PLATFORM_REQS" != "xyes" ]; then
travis_retry composer -n update --prefer-dist --no-interaction
else
travis_retry composer -n update --prefer-dist --no-interaction --ignore-platform-reqs
fi
jobs:
allow_failures:
- php: nightly
include:
- stage: Tests
php: 7.2
env: XDEBUG=yes
script:
- cp .travis/.env.travis .env
- ./vendor/bin/phpunit --testsuite unit -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.3
script:
- cp .env.example .env
- ./vendor/bin/phpunit --testsuite unit -v -c .travis/phpunit.xml
- stage: Tests
php: nightly
env: IGNORE_PLATFORM_REQS=yes
script:
- cp .env.example .env
- ./vendor/bin/phpunit --testsuite unit -v -c .travis/phpunit.xml
- stage: PHPStan
php: 7.2
script:
- composer phpstan
- composer cs-fix