-
Notifications
You must be signed in to change notification settings - Fork 100
/
.travis.yml
28 lines (24 loc) · 748 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
language: php
jobs:
include:
- php: 5.6
- php: 7.0
- php: 7.1
- php: 7.2
- php: 7.3
- php: 7.4
- php: 7.2
env: gp_data_type=.json
# phpunit 8 will result in an error
# https://www.reddit.com/r/PHPhelp/comments/apipqs/travis_specifying_phpunit_version/
before_script:
- composer init -n
- composer require phpunit/phpunit "<8 >=4"
- composer require symfony/process
- composer require guzzlehttp/guzzle
- composer require phpunit/php-code-coverage "<7" # for phpunit compat
#- phpenv config-add phpunit/phpconfig.ini
script:
- vendor/bin/phpunit
- php phpunit/ServerCombineCoverage.php
- bash <(curl -s https://codecov.io/bash) -s ./x_coverage # Submit coverage report to https://codecov.io