forked from php-xapi/client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (38 loc) · 1.19 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
sudo: false
language: php
cache:
directories:
- $HOME/.composer/cache/files
env:
global:
- deps=""
php:
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- hhvm
matrix:
fast_finish: true
include:
- php: 5.4
env: $COMPOSER_OPTIONS="--prefer-lowest --ignore-platform-reqs"
- php: 5.6
env: PACKAGES="php-http/discovery:^1.0 php-http/guzzle6-adapter:^1.0 php-http/message:^1.0 xabbuh/oauth1-authentication:~1.0"
- php: 7.0
- php: 7.1
- php: 7.2
env: xdebug="yes"
before_install:
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" && "$xdebug" != "yes" ]]; then phpenv config-rm xdebug.ini; fi
- composer self-update
- composer require 'phpunit/phpunit:^4.8.35|^5.4.3|^6.0' --dev --no-update
install:
- if [ "$PACKAGES" != "" ]; then composer require --no-update $PACKAGES; fi
- composer update $COMPOSER_OPTIONS
script:
- vendor/bin/phpspec run
- if [[ "$xdebug" = "yes" ]]; then vendor/bin/phpunit --coverage-clover=coverage.clover; else vendor/bin/phpunit; fi
- if [[ "$xdebug" = "yes" ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [[ "$xdebug" = "yes" ]]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi