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
...@@ -17,11 +17,13 @@ cache: ...@@ -17,11 +17,13 @@ cache:
before_script: before_script:
- python -V # Print out python version for debugging - python -V # Print out python version for debugging
- apt-get -qq update - 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 - export DJANGO_SETTINGS_MODULE=AKPlanning.settings_ci
- ./Utils/setup.sh --prod - ./Utils/setup.sh --prod
- mysql --version
test: test:
script: script:
- source venv/bin/activate - 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 = { ...@@ -16,10 +16,11 @@ DATABASES = {
'PASSWORD': 'mysql', 'PASSWORD': 'mysql',
'OPTIONS': { 'OPTIONS': {
'init_command': "SET sql_mode='STRICT_TRANS_TABLES'", 'init_command': "SET sql_mode='STRICT_TRANS_TABLES'",
'charset': "utf8mb4",
}, },
'TEST': { '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.
Finish editing this message first!
Please register or to comment