-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (32 loc) · 834 Bytes
/
.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
language: php
sudo: false
dist: trusty
cache:
directories:
- $HOME/.cache/composer/files
php:
- '7.2'
- '7.3'
- 7.4snapshot
- nightly
matrix:
fast_finish: true
allow_failures:
- php: 7.4snapshot
- php: nightly
before_install:
- if [[ $COVERAGE != 1 && $INFECTION != 1 ]]; then phpenv config-rm xdebug.ini || echo 'No xdebug config.'; fi
- test "$TRAVIS_PHP_VERSION" != "nightly" || export COMPOSER_FLAGS="$COMPOSER_FLAGS --ignore-platform-reqs"
before_script:
- composer self-update
- COMPOSER_MEMORY_LIMIT=-1 travis_retry composer install --prefer-dist $COMPOSER_FLAGS
script:
- composer validate --no-check-all
- composer phpcs
- composer phpmd
- composer phpstan
- composer phpunit || exit 1
#- composer infection || exit 1
#- composer coverage
notifications:
email: false