aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2014-06-13 11:55:57 +0100
committerGareth Rees <gareth@mysociety.org>2014-06-13 11:55:57 +0100
commit0afe5e00219207c9bf210219099e3ad704ef56bc (patch)
treefaf8bff92ab56181361e7d5e8e1e793d2b4e432c /.travis.yml
parent552b08318cff55e12defccd4d617f4eb59e13204 (diff)
Use UTF-8 database for Travis tests
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 6a6b73e90..3351bed2a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,7 +16,9 @@ before_install:
- gem update --system 2.1.11
- gem install rake --version=0.9.2.2
- git submodule update --init --recursive
- - psql -c "create database foi_test template template0 encoding 'SQL_ASCII';" -U postgres
+ - psql -c "create database template_utf8 template template0 encoding 'UTF-8';" -U postgres
+ - psql -c "update pg_database set datistemplate=true where datname='template_utf8';" -U postgres
+ - psql -c "create database foi_test template template_utf8;" -U postgres
- cp config/database.yml-test config/database.yml
- cp config/general.yml-example config/general.yml
- cp config/newrelic.yml-example config/newrelic.yml