Force MySQL to use UTF-8 collation for tests.

This commit is contained in:
Roberto Rosario
2015-10-15 14:53:54 -04:00
parent bdc15fb518
commit 35fa8495bd

View File

@@ -15,6 +15,7 @@ test:mysql:
script:
- pip install -r requirements/testing.txt
- pip install -q mysql-python
- docker run -it --link mysql:mysql --rm mysql sh -c 'exec mysql -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"$MYSQL_ENV_MYSQL_ROOT_PASSWORD" -e "ALTER DATABASE $MYSQL_DATABASE CHARACTER SET utf8 COLLATE utf8_unicode_ci;"'
- coverage run manage.py test $MAYAN_TEST_APPS --settings=mayan.settings.testing.gitlab-ci.db_mysql --nomigrations
- bash <(curl https://raw.githubusercontent.com/codecov/codecov-bash/master/codecov) -t $CODECOV_TOKEN
tags: