Skip to content
Snippets Groups Projects
Commit 3261eea0 authored by Benjamin Hättasch's avatar Benjamin Hättasch
Browse files

Adapt CI settings for fixture loading

parent 889a8803
No related branches found
No related tags found
1 merge request!141Add view tests
This commit is part of merge request !141. Comments created here will be created in the context of that merge request.
......@@ -17,11 +17,13 @@ cache:
before_script:
- python -V # Print out python version for debugging
- apt-get -qq update
- apt-get -qq install -y python3-virtualenv python3 python3-dev python3-pip gettext default-libmysqlclient-dev
- apt-get -qq install -y python3-virtualenv python3 python3-dev python3-pip gettext default-mysql-client default-libmysqlclient-dev
- export DJANGO_SETTINGS_MODULE=AKPlanning.settings_ci
- ./Utils/setup.sh --prod
- mysql --version
test:
script:
- source venv/bin/activate
- python manage.py test --settings AKPlanning.settings_ci --keepdb
- echo "GRANT ALL on *.* to '${MYSQL_USER}';"| mysql -u root --password="${MYSQL_ROOT_PASSWORD}" -h mysql
- python manage.py test --settings AKPlanning.settings_ci
......@@ -16,10 +16,11 @@ DATABASES = {
'PASSWORD': 'mysql',
'OPTIONS': {
'init_command': "SET sql_mode='STRICT_TRANS_TABLES'",
'charset': "utf8mb4",
},
'TEST': {
'NAME': 'test',
'NAME': 'tests',
'CHARSET': "utf8mb4",
'COLLATION': 'utf8mb4_unicode_ci',
},
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment