summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-08-15 11:45:41 -0400
committerFrederic Guillot <fred@kanboard.net>2015-08-15 11:45:41 -0400
commitba3b31e65a7461f4a85c57b7b77701ef8a6bdab4 (patch)
treed5f4ee7d025bf0c6eb5ac45c4b64b0878734bb4e
parent715f16fc6b7d6d578104f643d2cd0722cf93af50 (diff)
Try to run database tests on travis
-rw-r--r--.travis.yml10
-rw-r--r--tests/units.postgres.xml2
2 files changed, 8 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 42c4d550..49f3465e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,4 +1,5 @@
language: php
+sudo: false
php:
- 7.0
@@ -7,14 +8,17 @@ php:
- 5.4
- 5.3
+env:
+ - DB=sqlite
+ - DB=mysql
+ - DB=postgres
+
matrix:
fast_finish: true
- allow_failures:
- - php: 7.0
before_script:
- phpenv config-add tests/php.ini
- composer install
script:
- - phpunit -c tests/units.sqlite.xml
+ - phpunit -c tests/units.$DB.xml \ No newline at end of file
diff --git a/tests/units.postgres.xml b/tests/units.postgres.xml
index 56cc533e..3442db1c 100644
--- a/tests/units.postgres.xml
+++ b/tests/units.postgres.xml
@@ -7,7 +7,7 @@
<php>
<const name="DB_DRIVER" value="postgres" />
<const name="DB_USERNAME" value="postgres" />
- <const name="DB_PASSWORD" value="postgres" />
+ <const name="DB_PASSWORD" value="" />
<const name="DB_NAME" value="kanboard_unit_test" />
</php>
</phpunit> \ No newline at end of file