-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (46 loc) · 1.37 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
language: php
php:
- 5.6
- 7.0
- 7.1
- hhvm
dist: trusty
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: e4ac8c5d9b2d98dee422dfcd403dd4c300a1902f7b75947c2ee1b9756c1f1368