-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
22 lines (17 loc) · 964 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
language: php
services:
- docker
branches:
only:
- master
before_script:
- chmod 777 -R ./
- docker-compose up -d
- docker-compose exec application composer install --prefer-dist --no-interaction
script:
- docker-compose exec application php -d zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20180731/xdebug.so ./bin/phpunit --configuration phpunit.xml.dist --dump-xdebug-filter phpunit-filter.php
- docker-compose exec application php -d zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20180731/xdebug.so ./bin/phpunit --prepend phpunit-filter.php --configuration phpunit.xml.dist --colors=never --coverage-clover build/logs/clover.xml
after_success:
- travis_retry docker-compose run --rm -e TRAVIS="TRAVIS" -e TRAVIS_JOB_ID="$TRAVIS_JOB_ID" -e TRAVIS_BRANCH="$TRAVIS_BRANCH" application php vendor/php-coveralls/php-coveralls/bin/php-coveralls -v
after_script:
- docker-compose down