Skip to content
Snippets Groups Projects

CI pipeline for mysql unit tests

Merged Daniel Hornung requested to merge f-mysql-test into dev
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
+ 2
1
@@ -20,7 +20,7 @@
@@ -20,7 +20,7 @@
#
#
services:
services:
- mariadb:10.4
# - mariadb:10.4
- mysql:8.0
- mysql:8.0
variables:
variables:
DEPLOY_REF: dev
DEPLOY_REF: dev
@@ -59,7+59,7 @@
@@ -59,7+59,7 @@
# Run the unit tests
# Run the unit tests
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
 
- cat .config
- 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
Loading