From 08af301eee36ac99d0b6368662ef390b09f936f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 24 Dec 2014 01:27:42 +0100 Subject: [PATCH] add .travis.yml file --- .travis.yml | 29 +++++++++++++++++++ .../Fixtures/App/config/parameters.travis.yml | 7 +++++ 2 files changed, 36 insertions(+) create mode 100644 .travis.yml create mode 100644 Tests/Fixtures/App/config/parameters.travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..b4dabf6e8 --- /dev/null +++ b/.travis.yml @@ -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 diff --git a/Tests/Fixtures/App/config/parameters.travis.yml b/Tests/Fixtures/App/config/parameters.travis.yml new file mode 100644 index 000000000..28d5cd26c --- /dev/null +++ b/Tests/Fixtures/App/config/parameters.travis.yml @@ -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 \ No newline at end of file