forked from DevGroup-ru/yii2-extensions-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (35 loc) · 1.02 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
language: php
php:
- 5.5
- 5.6
- 7.0
- hhvm
matrix:
fast_finish: true
allow_failures:
- php: hhvm
install:
- travis_retry composer self-update && composer --version
- travis_retry composer global require fxp/composer-asset-plugin:~1.1
- travis_retry composer global require --dev codeception/codeception:2.0.16 && ~/.composer/vendor/bin/codecept --version
- travis_retry composer install --prefer-dist --no-interaction --dev
before_script:
- mysql -e 'create database yii2_extmanager;'
script:
- ~/.composer/vendor/bin/codecept build
- ~/.composer/vendor/bin/codecept run --coverage --coverage-xml --verbose $PHPUNIT_FLAGS
after_script:
- |
if [ $TRAVIS_PHP_VERSION = '5.6' ]; then
pwd
travis_retry wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.xml
fi
cache:
- vendor
- $HOME/.composer/cache
after_success:
- |
if [ $TRAVIS_PHP_VERSION = '5.6' ]; then
bash <(curl -s https://codecov.io/bash)
fi