add travis

This commit is contained in:
Julien Fastré 2014-11-04 21:34:33 +01:00
parent 684e19f42a
commit 0dc198f4e3
2 changed files with 32 additions and 0 deletions

26
.travis.yml Normal file
View File

@ -0,0 +1,26 @@
language: php
php:
- 5.5
- 5.6
- hhvm-nightly
matrix:
allow_failures:
- php: hhvm-nightly
addons:
postgresql: "9.3"
before_script:
- psql -c 'create database test0;' -U postgres
- cp Tests/Fixtures/App/app/config/parameters.travis.yml Test/Fixtures/App/app/config/parameters.yml
- ./console.sh doctrine:schema:create
install:
- composer install --dev
script: phpunit --coverage-text
notifications:
email:
- info@champs-libres.coop

View File

@ -0,0 +1,6 @@
parameters:
database_host: 127.0.0.1
database_port: 5434
database_name: test0
database_user: postgres
database_password: postgres