-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.travis.yml
More file actions
43 lines (35 loc) · 1022 Bytes
/
.travis.yml
File metadata and controls
43 lines (35 loc) · 1022 Bytes
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.4
- 5.5
- 5.6
# - 7.0
env:
global:
- SYMFONY_ENV=test
#matrix:
# allow_failures:
# - php: 7.0
services:
- mongodb
before_script:
- npm install -g bower
- ln -s $(which bower) bin/bower
- echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- composer self-update
- composer install --optimize-autoloader --prefer-source
- php app/console --env=test doctrine:mongodb:schema:create --index
- php app/console --env=test doctrine:mongodb:fixtures:load --append
script: phpunit --verbose --repeat=3 -c app/phpunitTravis.xml
after_script: >
if [ $(phpenv version-name) = '5.6' ]; then
bin/test-reporter
&& curl -d message="[CodeClimate]($CODECLIMATE_URL) updated" $CODECLIMATE_GITTER_URL
|| curl -d message="CodeClimate failed to update" -d level=error $CODECLIMATE_GITTER_URL
; fi
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/162920b9399e54be89a4
on_success: always
on_failure: always