-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
61 lines (50 loc) · 1.12 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
#dist: trusty
env:
global:
- XDEBUG_MODE=coverage
language: php
php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
- 8.0
- nightly
matrix:
allow_failures:
- php: 5.6
- php: 7.0
- php: 7.1
- php: 7.2
- php: nightly
branches:
only:
- unstable
- stable
- /[0-9]+\.[0-9]+\.[0-9]+/
cache:
directories:
- $HOME/.composer/cache/
install:
# bind to each php version
- travis_retry composer update --no-interaction --prefer-source
before_script:
- git submodule update --init --recursive
# having coverage via travis-ci output
# - phpenv config-rm xdebug.ini || true
script:
- ./phing check
- ./vendor/bin/phpunit -c tests/phpunit.xml --coverage-text
# - ./vendor/bin/phpstan analyse --level=1 src tests # PHP > 7.2
# - ./vendor/bin/phpcs -n --standard=misc/coding/Mumsys ./src ./tests/src
# enable/ replace if all fits/ succeeds
# - ./phing all
#after_success:
# - wget https://scrutinizer-ci.com/ocular.phar
# - php ocular.phar code-coverage:upload --format=php-clover tests/phpunit-coverage.xml
#env:
# matrix:
# - COMPOSER_FLAGS="--prefer-lowest"
# - COMPOSER_FLAGS=""