Skip to content
Snippets Groups Projects
Verified Commit a750c0d3 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

WIP: CI for mysql: Including a template.

parent ca77d981
No related branches found
No related tags found
2 merge requests!7Release v5.0.0,!4CI pipeline for mysql unit tests
Pipeline #9826 failed
...@@ -62,15 +62,16 @@ build-testenv: ...@@ -62,15 +62,16 @@ build-testenv:
unittests: unittests:
tags: [ docker ] tags: [ docker ]
stage: test stage: test
script: # script:
- cp config.defaults .config # - cp config.defaults .config
- echo 'DATABASE_USER_HOST_LIST="%,"' >> .config # - echo 'DATABASE_USER_HOST_LIST="%,"' >> .config
- echo "MYSQL_USER_PASSWORD=$MYSQL_ROOT_PASSWORD" >> .config # - echo "MYSQL_USER_PASSWORD=$MYSQL_ROOT_PASSWORD" >> .config
- echo "MYSQL_HOST=mysql" >> .config # - echo "MYSQL_HOST=mysql" >> .config
- sleep 10 # - sleep 10
- make install # - make install
- ./utils/make_db restore_db tests/example.dump.sql # - ./utils/make_db restore_db tests/example.dump.sql
- ./tests/test_utils.sh # - ./tests/test_utils.sh
include: "/include-test.yml"
######## Deploy ######## ######## Deploy ########
......
script:
- cp config.defaults .config
- echo 'DATABASE_USER_HOST_LIST="%,"' >> .config
- echo "MYSQL_USER_PASSWORD=$MYSQL_ROOT_PASSWORD" >> .config
- echo "MYSQL_HOST=mysql" >> .config
- sleep 10
- make install
- ./utils/make_db restore_db tests/example.dump.sql
- ./tests/test_utils.sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment