forked from theorchard/monolog-cascade
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (30 loc) · 851 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
language: php
env:
global:
- COVERALLS=0
- PHPCS=0
matrix:
include:
- php: 5.3
dist: precise
env: COMPOSER_MEMORY_LIMIT=-1
- php: 5.4
dist: trusty
- php: 5.5
dist: trusty
- php: 5.6
env: COVERALLS=1 PHPCS=1
- php: 7
allow_failures:
# allow failure for Php < 5.6
- php: 5.3
- php: 5.4
- php: 5.5
fast_finish: true
install:
composer install --prefer-source
script:
- sh -c "if [ '$COVERALLS' = '1' ]; then ./vendor/bin/phpunit --coverage-clover clover.xml ; else ./vendor/bin/phpunit ; fi"
- sh -c "if [ '$PHPCS' = '1' ]; then vendor/bin/phpcs -p --extensions=php --standard=PSR2 ./src ./tests ; fi"
after_script:
- sh -c "if [ '$COVERALLS' = '1' ]; then vendor/bin/coveralls -vvv ; fi"