-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
executable file
·63 lines (51 loc) · 1.66 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
52
53
54
55
56
57
58
59
60
61
62
language: php
php:
- nightly
- '7.3'
- '7.2'
- '7.1'
- '7'
- '5.6'
- '5.5'
- '5.5.9'
- '5.4'
env:
- COVER=0
matrix:
include:
- name: 'Coverage'
php: '7'
env: COVER=1
- name: 'PHP 5.3'
os: linux
dist: precise
php: '5.3'
env: COVER=0
- name: 'PHP 5.3.3'
os: linux
dist: precise
php: '5.3.3'
env: COVER=0
allow_failures:
# run this coverage build, but allow failure
- name: 'Coverage'
- php: nightly # nightly build can have bugs, that are no failures for Behind
# from travis documentation: https://docs.travis-ci.com/user/languages/php#PHP-installation
# "Note that the OpenSSL extension is disabled on php 5.3.3 because of compilation problems with OpenSSL 1.0."
- name: 'PHP 5.3.3'
# validated with: http://lint.travis-ci.org/
# os: # error: your repository must be feature flagged for the os setting to be used
# - linux
# - osx # error: in os section: dropping osx, does not support php
sudo: false
addons:
code_climate:
repo_token: 99a93b7c64a586c9207ad11a8da9a7dbc2811936dc13c11bbe71653e0fcd9f53
install:
- composer require phpunit/phpunit:^4 --dev;
- if [[ "$COVER" == 1 ]] && [[ "$TRAVIS_BRANCH" == "master" ]]; then composer require codeclimate/php-test-reporter --dev; fi
- travis_retry composer install --no-interaction --prefer-source
script:
- if [[ "$COVER" == 1 ]]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml --coverage-text; else vendor/bin/phpunit; fi
after_script:
- if [[ "$COVER" == 1 ]] && [[ "$TRAVIS_BRANCH" == "master" ]]; then CODECLIMATE_REPO_TOKEN=99a93b7c64a586c9207ad11a8da9a7dbc2811936dc13c11bbe71653e0fcd9f53 ./vendor/bin/test-reporter; fi