forked from php-service-bus/service-bus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (24 loc) · 811 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
language: php
php:
- 7.2
- 7.3
addons:
postgresql: "9.5"
services:
- postgresql
- rabbitmq
cache:
directories:
- $HOME/.cache/composer
before_script:
- mkdir -p build/logs
- psql -c 'CREATE DATABASE test;' -U postgres
install:
- travis_retry composer install --no-interaction --no-suggest
- travis_retry wget -c -nc --retry-connrefused --tries=0 https://scrutinizer-ci.com/ocular.phar
- chmod +x ocular.phar
script:
- ./vendor/bin/phpunit --configuration ./phpunit.xml --coverage-clover=coverage.clover
after_script:
- if [ "$TRAVIS_PHP_VERSION" == "7.2" ]; then wget -c -nc --retry-connrefused --tries=0 https://scrutinizer-ci.com/ocular.phar; fi
- if [ "$TRAVIS_PHP_VERSION" == "7.2" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi