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

Adapt CI settings for fixture loading

parent 475289ac
No related branches found
No related tags found
No related merge requests found
Pipeline #120889 failed
......@@ -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-libmysqlclient default-libmysqlclient-dev
- mysql --version
- export DJANGO_SETTINGS_MODULE=AKPlanning.settings_ci
- ./Utils/setup.sh --prod
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