add .travis.yml file

This commit is contained in:
Julien Fastré 2014-12-24 01:27:42 +01:00
parent 15c3916c8b
commit 08af301eee
2 changed files with 36 additions and 0 deletions

29
.travis.yml Normal file
View File

@ -0,0 +1,29 @@
language: php
php:
- 5.5
- 5.6
- hhvm-nightly
matrix:
allow_failures:
- php: hhvm-nightly
addons:
postgresql: "9.3"
install:
- composer install --dev
- cp Tests/Fixtures/App/config/parameters.travis.yml Tests/Fixtures/App/config/parameters.yml
before_script:
- psql -c 'create database test0;' -U postgres
- php Tests/Fixtures/App/console --env=test cache:warmup
- php Tests/Fixtures/App/console assets:install Tests/Fixtures/App/web
- php Tests/Fixtures/App/console doctrine:schema:create --env=test --no-interaction
- php Tests/Fixtures/App/console doctrine:fixtures:load --env=test --no-interaction
script: phpunit --coverage-text
notifications:
email:
- info@champs-libres.coop

View File

@ -0,0 +1,7 @@
parameters:
database_host: 127.0.0.1
database_port: 5432
database_name: test0
database_user: postgres
database_password: postgres
locale: fr