From 0dc198f4e39ac1212e563c48bb4a5fd2e5a260a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 4 Nov 2014 21:34:33 +0100 Subject: [PATCH] add travis --- .travis.yml | 26 +++++++++++++++++++ .../App/app/config/parameters.travis.yml | 6 +++++ 2 files changed, 32 insertions(+) create mode 100644 .travis.yml create mode 100644 Tests/Fixtures/App/app/config/parameters.travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..5868a7ce0 --- /dev/null +++ b/.travis.yml @@ -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 diff --git a/Tests/Fixtures/App/app/config/parameters.travis.yml b/Tests/Fixtures/App/app/config/parameters.travis.yml new file mode 100644 index 000000000..8e52ea993 --- /dev/null +++ b/Tests/Fixtures/App/app/config/parameters.travis.yml @@ -0,0 +1,6 @@ +parameters: + database_host: 127.0.0.1 + database_port: 5434 + database_name: test0 + database_user: postgres + database_password: postgres \ No newline at end of file