Commit 6c7ce08e authored by Michal Čihař's avatar Michal Čihař

Force UTF-8 for Weblate database for tests

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 612e4e6a
......@@ -32,7 +32,7 @@ install:
# create databases
before_script:
- timestamp.sh before_script
- mysql -e 'create database weblate;'
- mysql -e 'CREATE DATABASE weblate CHARACTER SET utf8 COLLATE utf8_general_ci;'
- psql -c 'create database weblate;' -U postgres
- if [ -n "$DO_SELENIUM" ] ; then curl -L https://gist.githubusercontent.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash ; fi
- echo -e "[server]\nmax_allowed_packet=64M\nwait_timeout=28800" | sudo tee -a /etc/mysql/conf.d/weblate.cnf
......
......@@ -26,11 +26,9 @@ install:
- pip install --download-cache $HOME/.pip-cache unittest-xml-reporting
# create databases
before_script:
- mysql -e 'create database weblate;'
- mysql -e 'CREATE DATABASE weblate CHARACTER SET utf8 COLLATE utf8_general_ci;'
- psql -c 'create database weblate;' -U postgres
- if [ -n "$DO_SELENIUM" ] ; then curl -L https://gist.githubusercontent.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash ; fi
- echo -e "[server]\nmax_allowed_packet=64M\nwait_timeout=28800" | sudo tee -a /etc/mysql/conf.d/weblate.cnf
- sudo service mysql restart
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
# commands to run tests
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment