trabajo-afectivo/.gitlab/ci/browser-core.yml

88 lines
2.5 KiB
YAML
Raw Normal View History

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
- .services_mysql_postgresql_elasticsearch_selenium_imap_redis_memcached
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
- .services_mysql_postgresql_redis_memcached
variables:
RAILS_ENV: "production"
.template_browser-capybara: &template_browser-capybara
dependencies:
- browser:build
extends:
- .env_base
- .variables_es
- .services_mysql_postgresql_elasticsearch_selenium_imap_redis_memcached
variables:
RAILS_ENV: "test"
REDIS_URL: "redis://redis:6379"
.template_browser-core_capybara: &template_browser-core_capybara
extends:
- .template_browser-capybara
stage: browser-core
script:
- 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
# we need at least one job to store and include this template
# $IGNORE is not defined
ignore:
stage: test
only:
variables:
- $IGNORE
script:
- ''