-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (29 loc) · 1.12 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
language: php
matrix:
include:
- php: 5.4
- php: 5.5
- php: 5.6
env: SYMFONY_VERSION="~2.7"
- php: 5.6
env: SYMFONY_VERSION="~3.0@dev" COMPOSER_FLAGS="--prefer-stable"
- php: 7.0
- php: hhvm
cache:
directories:
- $HOME/.composer/cache
before_install:
- 'if [ "$SYMFONY_VERSION" != "" ]; then sed -i "s/\"symfony\/\([^\"]*\)\": \"[^\"]*\"/\"symfony\/\1\": \"$SYMFONY_VERSION\"/g" composer.json; fi'
install:
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction
script:
- phpunit --verbose --coverage-clover build/logs/clover.xml
- phpenv config-rm xdebug.ini || return 0
after_script:
- CODECLIMATE_REPO_TOKEN=819e80ff7088dc1d68d0d8f63286a70433198685773f6c0a5bbb07cd9dd2295e ./vendor/bin/test-reporter
- "curl -X POST -d @codeclimate.json -H 'Content-Type: application/json' -H 'User-Agent: Code Climate (PHP Test Reporter v0.1.1)' https://codeclimate.com/test_reports"
addons:
code_climate:
repo_token: 819e80ff7088dc1d68d0d8f63286a70433198685773f6c0a5bbb07cd9dd2295e
after_success:
- php vendor/bin/coveralls -v