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

ENH: CI for mysql: Separate services for different testing jobs.

parent 185f3c86
Branches
Tags
2 merge requests!7Release v5.0.0,!4CI pipeline for mysql unit tests
Pipeline #9831 failed
...@@ -19,11 +19,6 @@ ...@@ -19,11 +19,6 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
# #
services:
- mariadb:10.4
- name: mysql:8.0
command: ["--default-authentication-plugin=mysql_native_password"]
variables: variables:
DEPLOY_REF: dev DEPLOY_REF: dev
CI_REGISTRY_IMAGE: $CI_REGISTRY/caosdb/src/caosdb-mysqlbackend/testenv:latest CI_REGISTRY_IMAGE: $CI_REGISTRY/caosdb/src/caosdb-mysqlbackend/testenv:latest
...@@ -58,19 +53,26 @@ build-testenv: ...@@ -58,19 +53,26 @@ build-testenv:
######## Test ######## ######## Test ########
# Run the unit tests with MySQL # Run the unit tests with MariaDB
unittests-mysql: unittests-mariadb:
tags: [ docker ] tags: [ docker ]
stage: test stage: test
services:
- mariadb:10.4
script: script:
- make pipeline-test SQL_HOST=mysql - make pipeline-test SQL_HOST=mariadb
# Run the unit tests with MariaDB # Run the unit tests with MySQL
unittests-mariadb: unittests-mysql:
tags: [ docker ] tags: [ docker ]
stage: test stage: test
services:
- name: mysql:8.0
command: ["--default-authentication-plugin=mysql_native_password"]
script: script:
- make pipeline-test SQL_HOST=mariadb - make pipeline-test SQL_HOST=mysql
######## Deploy ######## ######## Deploy ########
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment