-
Notifications
You must be signed in to change notification settings - Fork 58
/
.travis.yml
50 lines (41 loc) · 1.43 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
language: php
sudo: false
php:
- 7.1
- 7.2
- 7.3
cache:
directories:
- $HOME/.composer/cache
before_install:
- phpenv config-rm xdebug.ini || return 0
install:
- travis_retry composer install --no-progress --prefer-dist
- travis_retry composer create-project --no-interaction jakub-onderka/php-parallel-lint /tmp/php-parallel-lint
script:
- php /tmp/php-parallel-lint/parallel-lint.php -e php,phpt --exclude vendor .
- ./vendor/bin/tester -s -p php --colors 1 -C ./tests/Replicator
after_failure:
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
jobs:
include:
- env: title="Lowest Dependencies 7.1"
php: 7.1
install:
- travis_retry composer update --no-progress --prefer-dist --prefer-lowest
script:
- ./vendor/bin/tester -s -p php --colors 1 -C ./tests/Replicator
- stage: Test Coverage
php: 7.1
script:
- ./vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage ./coverage.xml --coverage-src ./src ./tests/Replicator
after_script:
- travis_retry wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.1.0/php-coveralls.phar
- php php-coveralls.phar --verbose --config tests/.coveralls.yml
- stage: Outdated Dependencies
php: 7.1
script:
- composer outdated --direct --strict
allow_failures:
- stage: Test Coverage
- stage: Outdated Dependencies