-
Notifications
You must be signed in to change notification settings - Fork 22
/
.travis.yml
34 lines (28 loc) · 848 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
language: php
sudo: false
matrix:
include:
- php: 7.2
- php: 7.3
- php: 7.4
- php: 8.0
- php: 8.1
- php: 8.2
- php: nightly
fast_finish: true
allow_failures:
- php: nightly
before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-source
- travis_retry phpenv rehash
script:
- ./vendor/bin/parallel-lint src test
- ./vendor/bin/phpcs src --standard=psr2 -sp
- ./vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
after_success:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
- mkdir -p build/logs
- wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.2/coveralls.phar
- travis_retry php coveralls.phar -x coverage.clover