-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
51 lines (43 loc) · 1.51 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
47
48
49
50
51
language: php
php:
- 7.1
- 7.2
- 7.3
sudo: false
matrix:
allow_failures:
- php: hhvm
fast_finish: true
branches:
except:
- upstream
install:
- composer self-update
- composer install -o
- |
if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then
composer require "phpunit/phpunit=~5.7"
else
if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then
composer require "phpunit/phpunit=~5"
else
composer require "phpunit/phpunit=~4.8"
fi
fi
script: ./vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover=coverage.clover
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
notifications:
hipchat:
rooms:
secure: "bRRKwwnzJejZ399Ihu7eQKxfykEEKfXJ4OrHDQ//kPoXdDu0Cz2oBMq5v8NwHIc2OKt2G+HvIeVA2UqmZpdbgnvDbcKOV+L3ySeFPcTuNM8FF7tQSplZTG9EP2oqmMNLhpvrqp29iadNRlbZnp8jWc3ZIphJTnUzgzBeqjXPgV8="
template:
- >
Build <a href="%{build_url}">#%{build_number}</a>
(<a href="%{compare_url}">%{commit}</a>)
of <a href="https://github.com/%{repository}/tree/%{branch}">%{repository}@%{branch}</a>
by %{author}: %{message}
format: html
slack:
secure: "POBkaCa5GlK4Bykt/YVaGGn3PtyURBClGRaw6sUPp8fq/Z69h2f4uOyu735bdyacp3zElGqR01wp/5ayO7bvW+hdoSRrVpJsSXRL/OakrRKehBY0mAKtNULVmVmb18lUrVSpyWBRXme1ZSnGgiA+/6Szx2TZuFN9S7q2Qeq8gv4="