partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 08b39950ce3435568c9820519077590142f8da56
parent 1f824b011d0df5b0b2d54e98e1b6549fe72611bd
Author: Felicitus <felicitus@felicitus.org>
Date:   Mon,  6 Jul 2015 20:35:37 +0200

Added travis CI tests

Diffstat:
A.travis.yml | 33+++++++++++++++++++++++++++++++++
Mapp/config/config_test.yml | 15+++++++++++++--
2 files changed, 46 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml @@ -0,0 +1,32 @@ +language: php + +php: + - 5.4 + - 5.5 + - 5.6 + - 7.0 + - nightly + - hhvm + +script: phpunit -c app/ + +env: + - SYMFONY__TESTDB=mysql + - SYMFONY__TESTDB=pgsql + - SYMFONY__TESTDB=sqlite + +matrix: + exclude: + - php: hhvm + env: DB=pgsql # PDO driver for pgsql is unsupported by HHVM (3rd party install for support) + allow_failures: + - php: 7.0 + - php: hhvm + +before_script: + - if [[ "$DB" == "pgsql" ]]; then psql -c "DROP DATABASE IF EXISTS partkeepr_test;" -U postgres; fi + - if [[ "$DB" == "pgsql" ]]; then psql -c "create database partkeepr_test;" -U postgres; fi + - if [[ "$DB" == "mysql" ]]; then mysql -e "DROP IF EXISTS partkeepr_test;" -uroot; fi + - if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS partkeepr_test;" -uroot; fi + - app/console doctrine:database:create --env=test + - app/console doctrine:schema:create --env=test+ \ No newline at end of file diff --git a/app/config/config_test.yml b/app/config/config_test.yml @@ -15,11 +15,22 @@ web_profiler: doctrine: dbal: - default_connection: default + default_connection: %testdb% connections: - default: + sqlite: driver: pdo_sqlite path: %kernel.cache_dir%/test.db + mysql: + driver: pdo_mysql + dbname: partkeepr_test + host: localhost + user: travis + pgsql: + driver: pdo_pgsql + dbname: partkeepr_test + host: localhost + user: travis + liip_functional_test: cache_sqlite_db: true \ No newline at end of file