2020-05-06 09:32:26 +00:00
|
|
|
include:
|
|
|
|
|
|
|
|
# browser-core
|
|
|
|
- local: '/.gitlab/ci/browser-core/build.yml'
|
|
|
|
- local: '/.gitlab/ci/browser-core/autowizard_chrome.yml'
|
|
|
|
- local: '/.gitlab/ci/browser-core/autowizard_ff.yml'
|
|
|
|
- local: '/.gitlab/ci/browser-core/api_client_php.yml'
|
|
|
|
- local: '/.gitlab/ci/browser-core/api_client_ruby.yml'
|
|
|
|
- local: '/.gitlab/ci/browser-core/capybara_chrome.yml'
|
|
|
|
- local: '/.gitlab/ci/browser-core/capybara_ff.yml'
|
|
|
|
- local: '/.gitlab/ci/browser-core/chrome.yml'
|
|
|
|
- local: '/.gitlab/ci/browser-core/firefox.yml'
|
|
|
|
|
|
|
|
.template_browser-core: &template_browser-core
|
|
|
|
stage: browser-core
|
|
|
|
dependencies:
|
|
|
|
- browser:build
|
|
|
|
extends:
|
|
|
|
- .env_base
|
|
|
|
- .variables_es
|
|
|
|
- .variables_app_restart_cmd
|
2021-07-02 11:46:37 +00:00
|
|
|
- .services_mysql_postgresql_elasticsearch_selenium_imap_redis_memcached
|
2020-05-06 09:32:26 +00:00
|
|
|
variables:
|
|
|
|
RAILS_ENV: "production"
|
|
|
|
script:
|
|
|
|
- script/build/test_slice_tests.sh $TEST_SLICE
|
|
|
|
- RAILS_ENV=test bundle exec rake db:create
|
|
|
|
- bundle exec rake zammad:ci:test:start[with_elasticsearch]
|
|
|
|
- time bundle exec rails test --fail-fast test/browser
|
|
|
|
|
|
|
|
.template_browser-core_autowizard: &template_browser-core_autowizard
|
|
|
|
stage: browser-core
|
|
|
|
dependencies:
|
|
|
|
- browser:build
|
|
|
|
extends:
|
|
|
|
- .env_base
|
|
|
|
- .variables_app_restart_cmd
|
|
|
|
- .services_postgresql_selenium
|
|
|
|
variables:
|
|
|
|
RAILS_ENV: "production"
|
|
|
|
AUTO_WIZARD_FILE: "contrib/auto_wizard_example.json"
|
|
|
|
TEST_FILE: "test/integration/auto_wizard_browser_test.rb"
|
|
|
|
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
|
|
|
|
|
|
|
|
.template_browser-core_api_client: &template_browser-core_api_client
|
|
|
|
stage: browser-core
|
|
|
|
dependencies:
|
|
|
|
- browser:build
|
|
|
|
extends:
|
|
|
|
- .env_base
|
|
|
|
- .variables_app_restart_cmd
|
2021-07-02 11:46:37 +00:00
|
|
|
- .services_mysql_postgresql_redis_memcached
|
2020-05-06 09:32:26 +00:00
|
|
|
variables:
|
|
|
|
RAILS_ENV: "production"
|
|
|
|
|
2021-03-16 15:24:09 +00:00
|
|
|
.template_browser-capybara: &template_browser-capybara
|
2020-05-06 09:32:26 +00:00
|
|
|
dependencies:
|
|
|
|
- browser:build
|
|
|
|
extends:
|
|
|
|
- .env_base
|
|
|
|
- .variables_es
|
2021-07-02 11:46:37 +00:00
|
|
|
- .services_mysql_postgresql_elasticsearch_selenium_imap_redis_memcached
|
2020-05-06 09:32:26 +00:00
|
|
|
variables:
|
|
|
|
RAILS_ENV: "test"
|
2021-06-30 08:24:58 +00:00
|
|
|
REDIS_URL: "redis://redis:6379"
|
2021-03-16 15:24:09 +00:00
|
|
|
|
|
|
|
.template_browser-core_capybara: &template_browser-core_capybara
|
|
|
|
extends:
|
|
|
|
- .template_browser-capybara
|
|
|
|
stage: browser-core
|
2020-05-06 09:32:26 +00:00
|
|
|
script:
|
2020-12-15 14:19:21 +00:00
|
|
|
- bundle exec rake zammad:ci:test:prepare
|
2021-03-10 16:11:14 +00:00
|
|
|
- bundle exec rspec --fail-fast -t type:system -t ~integration
|
2020-05-06 09:32:26 +00:00
|
|
|
|
|
|
|
# we need at least one job to store and include this template
|
|
|
|
# $IGNORE is not defined
|
|
|
|
ignore:
|
|
|
|
stage: test
|
|
|
|
only:
|
|
|
|
variables:
|
|
|
|
- $IGNORE
|
|
|
|
script:
|
|
|
|
- ''
|