forked from sergeymakinen/yii2-telegram-log
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (59 loc) · 1.41 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
dist: trusty
sudo: false
git:
depth: 1
language: php
matrix:
fast_finish: true
include:
- php: 5.4
env: COMPOSER_LOWEST="--prefer-lowest"
- php: 5.4
- php: 5.5
env: COMPOSER_LOWEST="--prefer-lowest"
- php: 5.5
- php: 5.6
env: COMPOSER_LOWEST="--prefer-lowest"
- php: 5.6
env: PHPUNIT_COVERAGE="--coverage-clover=coverage.xml"
- php: 7.0
env: COMPOSER_LOWEST="--prefer-lowest"
- php: 7.0
- php: 7.1
env: COMPOSER_LOWEST="--prefer-lowest"
- php: 7.1
- php: nightly
env: COMPOSER_LOWEST="--prefer-lowest"
- php: nightly
allow_failures:
- php: nightly
env: COMPOSER_LOWEST="--prefer-lowest"
- php: nightly
cache:
directories:
- "$HOME/.composer/cache"
before_install:
- stty cols 120
- |
if [ -z "$PHPUNIT_COVERAGE" ]; then
phpenv config-rm xdebug.ini || true
fi
install:
- composer self-update
- composer config -g repositories.asset-packagist composer https://asset-packagist.org
- travis_retry composer update --no-interaction --prefer-stable --prefer-dist $COMPOSER_LOWEST
- composer show
script:
- vendor/bin/phpunit $PHPUNIT_COVERAGE
after_success:
- |
if [ -n "$PHPUNIT_COVERAGE" ]; then
travis_retry wget https://codecov.io/bash
bash ./bash
fi
after_script:
- |
if [ -n "$PHPUNIT_COVERAGE" ]; then
travis_retry wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.xml
fi