From a52b2472a836f2b7610029ae3b640d53130d83a4 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 26 Jan 2016 16:20:26 +0100 Subject: [PATCH] Added dedicated db jobs for imports. --- .gitlab-ci.yml | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e7390f75b..0f29de993 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -131,7 +131,7 @@ job_integration_user_agent: - rake db:migrate - ruby -I test/ test/integration/user_agent_test.rb -job_integration_es: +job_integration_es_mysql: stage: test tags: - core @@ -147,7 +147,7 @@ job_integration_es: - ruby -I test/ test/controllers/search_controller_test.rb - ruby -I test/ test/integration/report_test.rb -job_integration_es: +job_integration_es_postgresql: stage: test tags: - core @@ -163,10 +163,11 @@ job_integration_es: - ruby -I test/ test/controllers/search_controller_test.rb - ruby -I test/ test/integration/report_test.rb -job_integration_zendesk: +job_integration_zendesk_mysql: stage: test tags: - core + - mysql script: - export RAILS_ENV=test - rake db:drop; @@ -174,10 +175,36 @@ job_integration_zendesk: - rake db:migrate - ruby -I test/ test/integration/zendesk_import_test.rb -job_integration_otrs_5: +job_integration_zendesk_postgresql: stage: test tags: - core + - postgresql + script: + - export RAILS_ENV=test + - rake db:drop; + - rake db:create + - rake db:migrate + - ruby -I test/ test/integration/zendesk_import_test.rb + +job_integration_otrs_5_mysql: + stage: test + tags: + - core + - mysql + script: + - export RAILS_ENV=test + - export IMPORT_OTRS_ENDPOINT="http://vz599.demo.znuny.com/otrs/public.pl?Action=ZammadMigrator" + - rake db:drop; + - rake db:create + - rake db:migrate + - ruby -I test/ test/integration/otrs_import_test.rb + +job_integration_otrs_5_postgresql: + stage: test + tags: + - core + - postgresql script: - export RAILS_ENV=test - export IMPORT_OTRS_ENDPOINT="http://vz599.demo.znuny.com/otrs/public.pl?Action=ZammadMigrator"