From: Daniel Axtens Date: Fri, 20 Oct 2017 05:36:56 +0000 (+1100) Subject: Test postgresql support in Travis CI X-Git-Tag: v2.1.0-rc1~114 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73931bc8ffc507e86d1fc201bb7376bf87dc7618;p=thirdparty%2Fpatchwork.git Test postgresql support in Travis CI 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 Reviewed-by: Stephen Finucane --- diff --git a/.travis.yml b/.travis.yml index 1f898f37..f19fe4f3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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