-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (43 loc) · 1.34 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:
- 7.1
- 7.2
env:
- APP_ENV=development
matrix:
allow_failures:
- php: hhvm
before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-source
- touch .env
- >-
if [ "$TRAVIS_PHP_VERSION" == "hhvm" ]; then echo 'date.timezone =
Europe/Berlin' >> /etc/hhvm/php.ini; fi;
- >-
if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo 'date.timezone =
Europe/Berlin' >> ~/.phpenv/versions/$(phpenv
version-name)/etc/conf.d/travis.ini; fi;
script:
- >-
bash -c 'if [ "$TRAVIS_PHP_VERSION" == "hhvm" ]; then vendor/bin/phpunit;
fi;'
- >-
bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then vendor/bin/phpunit
--coverage-clover build/logs/clover.xml; fi;'
after_script:
- >-
bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then
vendor/bin/test-reporter; fi;'
- >-
bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then wget
https://scrutinizer-ci.com/ocular.phar; fi;'
- >-
bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php ocular.phar
code-coverage:upload --format=php-clover build/logs/clover.xml; fi;'
- >-
bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php
vendor/bin/coveralls -v; fi;'
addons:
code_climate:
repo_token: 20359e11b7e56d440ebf84cbb0aacfa5d57fd9cfc4afdf0d7f0cba34b0105913