-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
67 lines (56 loc) · 2.5 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
language: php
sudo: false
addons:
apt:
packages:
- libxml2-utils
code_climate:
repo_token:
secure: "vMSyMnp6aDmCgJ9TOS7YCKh5y5UH31M3YXNMLyvfaIdA/EDCvftesl7ahj74BWW2JaRu0OFKt0WCGLbwSZgqwGU+LoZXo49QruqZrl/s1kLLAtLQCOyuroqP88WDwawvffCOrA6yex6GfU0wJPqdQz6TkD/SCh/2ixPbVunh+9Ui69VXVWz4oY5444ni7+XJ/J0TWE3I7TED0Pi6VoNzAikB7hMJBg/gUmLITqfUVsXtGmAznVOS93hamFQIyXdJ6P5ivvsqEGlIzFhCMbOhDoKa5aRFlaB7XuTOujAGKfeK2vz8V0wiZZvXIrUipGtjmMmYcwHhBQ5t5XIeSxVZxina4Ml/SP8MhsOdWwDx1KGcbk6vIRZIdSUUfeCflQcW6XmAjfHX7IPXq1GnOYVaARFyKV6aa8nmpBudmWuQFcMhMDfYgJuBfzAYnxccTzLIN102cFpH0c4icywuQ6B/3j9M+2sKqpZnYzFbRJ9B0gjn4LKBt90OvWI4VUh6c0aUwFY8OqlgkDX9TGWcto0skAKqp8oQ4voh/uKMCagpem36pM8IUxBGLssAXfHYYy1jpRLad84hotWVzExe7e24Tjft675c3ZSeYvG85tRfJjANOFdB1M5Ydx5db/kmHDL5XkExuwZoapHI1hG64mHZnVJwc8QnDb/nRoiThxaiA4A="
php:
- 7.0
- 7.1
- 7.2
matrix:
allow_failures:
- php: master
fast_finish: true
env:
matrix:
- DEPENDENCIES="high"
- DEPENDENCIES="low"
global:
- DEFAULT_COMPOSER_FLAGS="--no-interaction --no-ansi --no-progress --no-suggest"
before_install:
- composer clear-cache
install:
- if [[ "$DEPENDENCIES" = 'high' ]]; then travis_retry composer update $DEFAULT_COMPOSER_FLAGS; fi
- if [[ "$DEPENDENCIES" = 'low' ]]; then travis_retry composer update $DEFAULT_COMPOSER_FLAGS --prefer-lowest; fi
before_script:
- echo 'zend.assertions=1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- echo 'assert.exception=On' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
script:
- ./vendor/bin/phpunit --coverage-text --coverage-clover=build/logs/clover.xml
- ./vendor/bin/phpunit --configuration ./build/travis-ci-fail.xml > /dev/null; if [ $? -eq 0 ]; then echo "SHOULD FAIL"; false; else echo "fail checked"; fi;
after_script:
- ./vendor/bin/test-reporter
jobs:
include:
- stage: Quality
php: 7.2
env: PHPStan
install: travis_retry composer update --prefer-dist --prefer-stable
before_script:
- travis_retry composer update --prefer-dist --prefer-stable
script:
- ./vendor/bin/phpstan analyse --level=0 src -c phpstan.neon
- ./vendor/bin/phpstan analyse --level=1 tests -c phpstan.neon
- stage: Style
php: 7.2
env: php-cs-fixer
install:
- phpenv config-rm xdebug.ini
- travis_retry composer update --prefer-dist --prefer-stable
script:
- ./vendor/bin/php-cs-fixer --diff --dry-run -v fix src
- ./vendor/bin/php-cs-fixer --diff --dry-run -v fix tests