-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.travis.yml
34 lines (32 loc) · 845 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
install:
- composer selfupdate
- composer install --prefer-source
jobs:
include:
- stage: Unit tests
script:
- vendor/bin/phpunit
php: 5.6
- stage: Unit tests
script:
- vendor/bin/phpunit
php: 7.0
- stage: Unit tests
script:
- vendor/bin/phpunit
php: 7.1
- stage: Unit tests
script:
- vendor/bin/phpunit
php: 7.2
- stage: Unit tests
script:
- vendor/bin/phpunit
php: 7.3
- stage: Code coverage
script:
- vendor/bin/phpunit
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then php ocular.phar code-coverage:upload --format=php-clover build/reports/phpunit.xml; fi
php: 7.3