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
|
|
|
|
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
|
|
|
|
|
2021-08-11 09:29:56 +00:00
|
|
|
.template_browser-core_chrome: &template_browser-core_chrome
|
|
|
|
extends:
|
|
|
|
- .template_browser-core
|
|
|
|
- .services_mysql_postgresql_elasticsearch_selenium_chrome_imap_redis_memcached
|
|
|
|
|
|
|
|
.template_browser-core_firefox: &template_browser-core_firefox
|
|
|
|
extends:
|
|
|
|
- .template_browser-core
|
|
|
|
- .services_mysql_postgresql_elasticsearch_selenium_firefox_imap_redis_memcached
|
|
|
|
|
2020-05-06 09:32:26 +00:00
|
|
|
.template_browser-core_autowizard: &template_browser-core_autowizard
|
|
|
|
stage: browser-core
|
|
|
|
dependencies:
|
|
|
|
- browser:build
|
|
|
|
extends:
|
|
|
|
- .env_base
|
|
|
|
- .variables_app_restart_cmd
|
|
|
|
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
|
|
|
|
|
2021-08-11 09:29:56 +00:00
|
|
|
.template_browser-core_autowizard_chrome: &template_browser-core_autowizard_chrome
|
|
|
|
extends:
|
|
|
|
- .template_browser-core_autowizard
|
|
|
|
- .services_postgresql_selenium_chrome
|
|
|
|
|
|
|
|
.template_browser-core_autowizard_firefox: &template_browser-core_autowizard_firefox
|
|
|
|
extends:
|
|
|
|
- .template_browser-core_autowizard
|
|
|
|
- .services_postgresql_selenium_firefox
|
|
|
|
|
2020-05-06 09:32:26 +00:00
|
|
|
.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-08-11 09:29:56 +00:00
|
|
|
.template_browser-core_capybara: &template_browser-core_capybara
|
|
|
|
stage: browser-core
|
2020-05-06 09:32:26 +00:00
|
|
|
dependencies:
|
|
|
|
- browser:build
|
|
|
|
extends:
|
|
|
|
- .env_base
|
|
|
|
- .variables_es
|
2021-09-10 09:48:31 +00:00
|
|
|
- .variables_rspec_slicing
|
2020-05-06 09:32:26 +00:00
|
|
|
variables:
|
|
|
|
RAILS_ENV: "test"
|
|
|
|
script:
|
2020-12-15 14:19:21 +00:00
|
|
|
- bundle exec rake zammad:ci:test:prepare
|
2021-09-10 09:48:31 +00:00
|
|
|
- echo "RSpec filter:" "$RSPEC_EXAMPLE_MATCHES"
|
|
|
|
- bundle exec rspec --require ./spec/rspec_extensions.rb --example-matches "$RSPEC_EXAMPLE_MATCHES" --fail-fast -t ~integration --profile 10 spec/system
|
2020-05-06 09:32:26 +00:00
|
|
|
|
2021-08-11 09:29:56 +00:00
|
|
|
.template_browser-core_capybara_chrome: &template_browser-core_capybara_chrome
|
|
|
|
extends:
|
|
|
|
- .template_browser-core_capybara
|
|
|
|
- .services_mysql_postgresql_elasticsearch_selenium_chrome_imap_redis_memcached
|
|
|
|
|
|
|
|
.template_browser-core_capybara_firefox: &template_browser-core_capybara_firefox
|
|
|
|
extends:
|
|
|
|
- .template_browser-core_capybara
|
|
|
|
- .services_mysql_postgresql_elasticsearch_selenium_firefox_imap_redis_memcached
|
|
|
|
|
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:
|
|
|
|
- ''
|