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

ENH: Pipeline should now work with `trigger` keyword.

parent a71950ff
Branches
No related tags found
2 merge requests!17Release 6.0,!8"trigger" keyword and failing strategy
Pipeline #23789 passed
This commit is part of merge request !8. Comments created here will be created in the context of that merge request.
...@@ -53,47 +53,47 @@ build-testenv: ...@@ -53,47 +53,47 @@ build-testenv:
######## Test ######## ######## Test ########
# Run the unit tests with MariaDB # Run the unit tests with MariaDB
# unittests-mariadb: unittests-mariadb:
# tags: [ docker ] tags: [ docker ]
# stage: test stage: test
# services: services:
# - mariadb:10.4 - mariadb:10.4
# script: script:
# - make pipeline-test SQL_HOST=mariadb - make pipeline-test SQL_HOST=mariadb
# # Run the unit tests with MySQL 8 # Run the unit tests with MySQL 8
# unittests-mysql-8: unittests-mysql-8:
# tags: [ docker ] tags: [ docker ]
# stage: test stage: test
# # Should not stop the pipeline from continuing. # Should not stop the pipeline from continuing.
# allow_failure: true allow_failure: true
# services: services:
# - name: mysql:8.0 - name: mysql:8.0
# command: ["--default-authentication-plugin=mysql_native_password"] command: ["--default-authentication-plugin=mysql_native_password"]
# script: script:
# - sed "s/NO_AUTO_CREATE_USER,//" -i tests/example.dump.sql - sed "s/NO_AUTO_CREATE_USER,//" -i tests/example.dump.sql
# - rm tests/test_autotap.sql - rm tests/test_autotap.sql
# - make pipeline-test SQL_HOST=mysql - make pipeline-test SQL_HOST=mysql
# # Run the unit tests with MySQL 5 # Run the unit tests with MySQL 5
# unittests-mysql-5: unittests-mysql-5:
# tags: [ docker ] tags: [ docker ]
# stage: test stage: test
# # Should not stop the pipeline from continuing. # Should not stop the pipeline from continuing.
# allow_failure: true allow_failure: true
# services: services:
# - name: mysql:5.7 - name: mysql:5.7
# command: ["--default-authentication-plugin=mysql_native_password"] command: ["--default-authentication-plugin=mysql_native_password"]
# script: script:
# # remove some lines from autotap because the checks of column default # remove some lines from autotap because the checks of column default
# # values don't work with mysql-5 # values don't work with mysql-5
# - sed -i "/col_default_is.*NULL/d" tests/test_autotap.sql - sed -i "/col_default_is.*NULL/d" tests/test_autotap.sql
# - sed -i "/col_default_is.*INACTIVE/d" tests/test_autotap.sql - sed -i "/col_default_is.*INACTIVE/d" tests/test_autotap.sql
# - sed -i "/col_default_is.*SHA/d" tests/test_autotap.sql - sed -i "/col_default_is.*SHA/d" tests/test_autotap.sql
# - make pipeline-test SQL_HOST=mysql - make pipeline-test SQL_HOST=mysql
######## Deploy ######## ######## Deploy ########
...@@ -101,7 +101,6 @@ build-testenv: ...@@ -101,7 +101,6 @@ build-testenv:
trigger_build: trigger_build:
stage: deploy stage: deploy
variables: variables:
TRIGGER_TEST: Test-1
F_BRANCH: $CI_COMMIT_REF_NAME F_BRANCH: $CI_COMMIT_REF_NAME
MYSQLBACKEND: $CI_COMMIT_REF_NAME MYSQLBACKEND: $CI_COMMIT_REF_NAME
TriggerdBy: MYSQLBACKEND TriggerdBy: MYSQLBACKEND
...@@ -109,17 +108,7 @@ trigger_build: ...@@ -109,17 +108,7 @@ trigger_build:
trigger: trigger:
project: caosdb/src/caosdb-deploy project: caosdb/src/caosdb-deploy
branch: f-trigger-keyword branch: $DEPLOY_REF
# script:
# - /usr/bin/curl -X POST
# -F token=$CI_JOB_TOKEN
# -F "variables[TRIGGER_TEST]=Test-1"
# -F "variables[F_BRANCH]=$CI_COMMIT_REF_NAME"
# -F "variables[MYSQLBACKEND]=$CI_COMMIT_REF_NAME"
# -F "variables[TriggerdBy]=MYSQLBACKEND"
# -F "variables[TriggerdByHash]=$CI_COMMIT_SHORT_SHA"
# -F ref=$DEPLOY_REF https://gitlab.indiscale.com/api/v4/projects/14/trigger/pipeline
# Build the sphinx documentation and make it ready for deployment by Gitlab Pages # Build the sphinx documentation and make it ready for deployment by Gitlab Pages
# Special job for serving a static website. See https://docs.gitlab.com/ee/ci/yaml/README.html#pages # Special job for serving a static website. See https://docs.gitlab.com/ee/ci/yaml/README.html#pages
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment