-
-
Notifications
You must be signed in to change notification settings - Fork 156
/
.travis.yml
83 lines (73 loc) · 2.2 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
os: linux
dist: xenial
language: php
cache:
directories:
- $HOME/.composer/cache/files
jobs:
include:
- php: 5.6
env: COMPOSER_VERSION="1.8.*"
- php: 5.6
env: COMPOSER_VERSION="1.9.*"
- php: 5.6
env: COMPOSER_VERSION="1.10.*"
- php: 7.0
env: COMPOSER_VERSION="1.8.*"
- php: 7.0
env: COMPOSER_VERSION="1.9.*"
- php: 7.0
env: COMPOSER_VERSION="1.10.*"
- php: 7.1
env: COMPOSER_VERSION="1.8.*"
- php: 7.1
env: COMPOSER_VERSION="1.9.*"
- php: 7.1
env: COMPOSER_VERSION="1.10.*"
- php: 7.2
env: COMPOSER_VERSION="1.8.*"
- php: 7.2
env: COMPOSER_VERSION="1.9.*"
- php: 7.2
env: COMPOSER_VERSION="1.10.*"
- php: 7.3
env: COMPOSER_VERSION="1.8.*"
- php: 7.3
env: COMPOSER_VERSION="1.9.*"
- php: 7.3
env: COMPOSER_VERSION="1.10.*"
- php: 7.4
env: COMPOSER_VERSION="1.8.*"
- php: 7.4
env: COMPOSER_VERSION="1.9.*"
- php: 7.4
env: COMPOSER_VERSION="1.10.*"
- php: 8.0
env: COMPOSER_VERSION="1.8.*"
- php: 8.0
env: COMPOSER_VERSION="1.9.*"
- php: 8.0
env: COMPOSER_VERSION="1.10.*"
- php: nightly
env: COMPOSER_VERSION="1.8.*"
- php: nightly
env: COMPOSER_VERSION="1.9.*"
- php: nightly
env: COMPOSER_VERSION="1.10.*"
allow_failures:
- php: nightly
fast_finish: true
before_script:
- |
composer self-update --1
if [ "$COMPOSER_VERSION" == "" ]; then composer install; fi;
if [ "$COMPOSER_VERSION" != "" ]; then composer require --dev --update-with-all-dependencies "composer/composer:${COMPOSER_VERSION}"; fi;
composer require --dev --update-with-all-dependencies phpunit/phpunit:"^4.8 || ^5.7.0 || ^6.5.0 || ^7.5.0" php-coveralls/php-coveralls:"^2.1.0"
script:
- |
vendor/bin/phpunit -v --coverage-clover coveralls.xml
after_success:
- |
if [ "$TRAVIS_PHP_VERSION" != nightly ]; then php vendor/bin/php-coveralls -v; fi
notifications:
email: false