Skip to content
Snippets Groups Projects
Commit ac88054e 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 #120891 failed
...@@ -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 mysql-client default-libmysqlclient-dev
- mysql --version
- export DJANGO_SETTINGS_MODULE=AKPlanning.settings_ci - export DJANGO_SETTINGS_MODULE=AKPlanning.settings_ci
- ./Utils/setup.sh --prod - ./Utils/setup.sh --prod
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.
Please register or to comment