2020-05-06 09:32:26 +00:00
|
|
|
include:
|
|
|
|
|
|
|
|
# browser-integration
|
2021-03-10 16:11:14 +00:00
|
|
|
- local: '/.gitlab/ci/browser-integration/capybara_chrome.yml'
|
|
|
|
- local: '/.gitlab/ci/browser-integration/capybara_ff.yml'
|
2020-05-06 09:32:26 +00:00
|
|
|
- local: '/.gitlab/ci/browser-integration/idoit_chrome.yml'
|
|
|
|
- local: '/.gitlab/ci/browser-integration/otrs_chrome.yml'
|
|
|
|
|
2021-03-10 16:11:14 +00:00
|
|
|
.template_browser-integration_capybara: &template_browser-integration_capybara
|
|
|
|
stage: browser-integration
|
|
|
|
dependencies:
|
|
|
|
- browser:build
|
|
|
|
extends:
|
|
|
|
- .env_base
|
|
|
|
- .variables_app_restart_cmd
|
|
|
|
- .variables_es
|
|
|
|
variables:
|
|
|
|
RAILS_ENV: "test"
|
|
|
|
script:
|
|
|
|
- bundle exec rake zammad:ci:test:prepare
|
|
|
|
- bundle exec rspec --fail-fast --pattern "spec/system/**/*_spec.rb" -t integration
|
|
|
|
|
2021-08-11 09:29:56 +00:00
|
|
|
.template_browser-integration_capybara_chrome: &template_browser-integration_capybara_chrome
|
|
|
|
extends:
|
|
|
|
- .template_browser-integration_capybara
|
|
|
|
- .services_mysql_postgresql_elasticsearch_selenium_chrome_imap_redis_memcached
|
|
|
|
|
|
|
|
.template_browser-integration_capybara_firefox: &template_browser-integration_capybara_firefox
|
|
|
|
extends:
|
|
|
|
- .template_browser-integration_capybara
|
|
|
|
- .services_mysql_postgresql_elasticsearch_selenium_firefox_imap_redis_memcached
|
|
|
|
|
|
|
|
.template_browser-integration_chrome: &template_browser-integration_chrome
|
2020-05-06 09:32:26 +00:00
|
|
|
stage: browser-integration
|
|
|
|
dependencies:
|
|
|
|
- browser:build
|
|
|
|
extends:
|
|
|
|
- .env_base
|
|
|
|
- .variables_app_restart_cmd
|
2021-08-11 09:29:56 +00:00
|
|
|
- .services_postgresql_selenium_chrome
|
2020-05-06 09:32:26 +00:00
|
|
|
variables:
|
|
|
|
RAILS_ENV: "production"
|
|
|
|
AUTO_WIZARD_FILE: "contrib/auto_wizard_test.json"
|
|
|
|
script:
|
|
|
|
- RAILS_ENV=test bundle exec rake db:create
|
|
|
|
- cp $AUTO_WIZARD_FILE auto_wizard.json
|
|
|
|
- bundle exec rake zammad:ci:test:start
|
|
|
|
- bundle exec rails test $TEST_FILE
|
|
|
|
|
2021-08-11 09:29:56 +00:00
|
|
|
.template_browser-integration_import_chrome: &template_browser-integration_import_chrome
|
2020-05-06 09:32:26 +00:00
|
|
|
stage: browser-integration
|
|
|
|
dependencies:
|
|
|
|
- browser:build
|
|
|
|
extends:
|
|
|
|
- .env_base
|
2021-08-11 09:29:56 +00:00
|
|
|
- .services_postgresql_selenium_chrome
|
2020-05-06 09:32:26 +00:00
|
|
|
variables:
|
|
|
|
RAILS_ENV: "production"
|
|
|
|
RAILS_SERVE_STATIC_FILES: "true"
|
|
|
|
script:
|
|
|
|
- RAILS_ENV=test bundle exec rake db:create
|
|
|
|
- bundle exec rake zammad:ci:test:start
|
|
|
|
- bundle exec rails test $TEST_FILE
|
|
|
|
|
|
|
|
# we need at least one job to store and include this template
|
|
|
|
# $IGNORE is not defined
|
|
|
|
ignore:
|
|
|
|
stage: test
|
|
|
|
only:
|
|
|
|
variables:
|
|
|
|
- $IGNORE
|
|
|
|
script:
|
|
|
|
- ''
|