forked from evently-nl/guzzle-jsonrpc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
38 lines (30 loc) · 836 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
35
36
37
38
language: php
dist: trusty
cache:
directories:
- $HOME/.composer/cache/files
- $HOME/.npm
php:
- 5.5
- 5.6
- 7
- 7.1
- hhvm
- nightly
matrix:
allow_failures:
- php: hhvm
- php: nightly
fast_finish: true
before_install:
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
before_script:
- make deps-js
- travis_retry composer update --no-interaction
script:
- vendor/bin/phpcs -p --warning-severity=0 --ignore=test/server src/ test/
- vendor/bin/phpunit --coverage-clover=./tests/report/coverage.clover --testsuite unit
- make test-functional
after_script:
- test -f ./tests/report/coverage.clover && (wget https://scrutinizer-ci.com/ocular.phar; php ocular.phar code-coverage:upload --format=php-clover ./tests/report/coverage.clover)