]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
Test postgresql support in Travis CI
authorDaniel Axtens <dja@axtens.net>
Fri, 20 Oct 2017 05:36:56 +0000 (16:36 +1100)
committerDaniel Axtens <dja@axtens.net>
Sat, 28 Oct 2017 01:39:17 +0000 (12:39 +1100)
Use the most recent version of postgres (9.6) because we need a
more recent version than the default to show up the broken
bundle behaviour.

This should prevent us from causing any further regressions.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Stephen Finucane <stephen@that.guru>
.travis.yml

index 1f898f3733b5dcddae0dd95e2e749817ad18bdba..f19fe4f3fa35c41fbd78881211c43b78952baddb 100644 (file)
@@ -1,5 +1,6 @@
 language: python
 
+dist: trusty
 sudo: false
 
 python:
@@ -7,17 +8,24 @@ python:
   - 3.4
   - 3.5
 
+addons:
+  postgresql: "9.6"
+
 services:
   - mysql
+  - postgresql
 
 env:
+  matrix:
+    - PW_TEST_DB_TYPE=postgres PW_TEST_DB_USER=postgres
+    - PW_TEST_DB_TYPE=mysql PW_TEST_DB_USER=root
   global:
-    - PW_TEST_DB_USER=root
     - PW_TEST_DB_PASS=""
     - PW_SKIP_BROWSER_TESTS=yes
 
 before_script:
   - mysql -e 'create database patchwork character set utf8;'
+  - psql -c "create database patchwork with ENCODING = 'UTF8';" -U postgres
 
 install:
   - pip install tox-travis