trabajo-afectivo/.gitlab-ci.yml

725 lines
18 KiB
YAML
Raw Normal View History

2018-10-01 17:41:17 +00:00
variables:
Z_LOCALES: "en-us:de-de"
.artifacts_error_template: &artifacts_error
artifacts:
expire_in: 2 days
when: on_failure
paths:
- tmp/screenshot*
- log/*.log
2015-11-22 14:58:06 +00:00
before_script:
2016-01-26 12:12:06 +00:00
- ruby -v
- which ruby
- env
2016-08-21 15:12:34 +00:00
- test -n "$RNAME" && script/build/test_db_config.sh
2018-10-01 17:41:17 +00:00
- test -n "$RNAME" && bundle install -j $(nproc)
2015-11-22 14:58:06 +00:00
stages:
2015-11-23 13:04:25 +00:00
- pre
2016-10-19 04:42:50 +00:00
- test
- browser-core
- browser-integration
2015-11-22 14:58:06 +00:00
2018-10-01 17:41:17 +00:00
# pre stage
pre:rubocop:
2015-11-23 13:04:25 +00:00
stage: pre
2015-11-27 11:55:54 +00:00
tags:
2015-12-01 18:48:58 +00:00
- core
script:
- bundle exec rubocop
pre:coffeelint:
stage: pre
tags:
2015-12-01 18:48:58 +00:00
- core
script:
- coffeelint app/
pre:bundle-audit:
2016-01-28 19:17:08 +00:00
stage: pre
tags:
- core
script:
- gem install bundler-audit
- bundle-audit update
2018-09-12 04:26:09 +00:00
- bundle-audit
2016-01-28 19:17:08 +00:00
2016-08-21 14:55:51 +00:00
pre:github:
stage: pre
2016-08-21 15:12:34 +00:00
tags:
- deploy
2016-08-21 14:55:51 +00:00
script:
2016-10-19 03:14:44 +00:00
- script/build/sync_repo.sh git@github.com:zammad/zammad.git
2016-08-21 14:55:51 +00:00
2018-10-01 17:41:17 +00:00
# test stage
## RSpec
.script_rspec_template: &script_rspec_definition
<<: *artifacts_error
variables:
RAILS_ENV: "test"
script:
- rake zammad:db:init
- bundle exec rspec
- rake db:drop
2016-11-25 17:01:41 +00:00
test:rspec:mysql:
stage: test
tags:
- core
- mysql
2018-10-01 17:41:17 +00:00
<<: *script_rspec_definition
2016-11-25 17:01:41 +00:00
test:rspec:postgresql:
stage: test
tags:
- core
- postgresql
2018-10-01 17:41:17 +00:00
<<: *script_rspec_definition
2016-11-25 17:01:41 +00:00
2018-10-01 17:41:17 +00:00
## Unit and Controller tests
.script_unit_template: &script_unit_definition
<<: *artifacts_error
variables:
RAILS_ENV: "test"
2016-10-19 04:42:50 +00:00
script:
2018-10-01 17:41:17 +00:00
- rake zammad:db:init
2016-10-19 04:42:50 +00:00
- rake test:units
2017-11-06 01:32:47 +00:00
- ruby -I test/ test/integration/object_manager_test.rb
- ruby -I test/ test/integration/package_test.rb
2016-10-19 04:42:50 +00:00
- rake db:drop
2018-10-01 17:41:17 +00:00
test:unit:mysql:
stage: test
tags:
- core
- mysql
<<: *script_unit_definition
2016-10-19 04:42:50 +00:00
test:unit:postgresql:
stage: test
tags:
- core
- postgresql
2018-10-01 17:41:17 +00:00
<<: *script_unit_definition
## Integration tests
2016-10-19 04:42:50 +00:00
test:integration:email_helper_deliver:
2018-10-01 17:41:17 +00:00
<<: *artifacts_error
2016-10-19 04:42:50 +00:00
stage: test
2018-10-01 17:41:17 +00:00
variables:
RAILS_ENV: "test"
2016-10-19 04:42:50 +00:00
tags:
- core
script:
2018-10-01 17:41:17 +00:00
- rake zammad:db:unseeded
2016-10-19 04:42:50 +00:00
- ruby -I test/ test/integration/email_helper_test.rb
- ruby -I test/ test/integration/email_deliver_test.rb
- ruby -I test/ test/integration/email_keep_on_server_test.rb
- rake db:drop
2016-10-19 04:42:50 +00:00
test:integration:facebook:
2018-10-01 17:41:17 +00:00
<<: *artifacts_error
2016-10-19 04:42:50 +00:00
stage: test
2018-10-01 17:41:17 +00:00
variables:
RAILS_ENV: "test"
2016-10-19 04:42:50 +00:00
tags:
- core-facebook
script:
2018-10-01 17:41:17 +00:00
- rake zammad:db:init
2016-10-19 04:42:50 +00:00
- ruby -I test/ test/integration/facebook_test.rb
- rake db:drop
allow_failure: true
test:integration:geo:
2018-10-01 17:41:17 +00:00
<<: *artifacts_error
2016-10-19 04:42:50 +00:00
stage: test
2018-10-01 17:41:17 +00:00
variables:
RAILS_ENV: "test"
2016-10-19 04:42:50 +00:00
tags:
- core
script:
2018-10-01 17:41:17 +00:00
- rake zammad:db:unseeded
2016-10-19 04:42:50 +00:00
- ruby -I test/ test/integration/geo_calendar_test.rb
- ruby -I test/ test/integration/geo_location_test.rb
- ruby -I test/ test/integration/geo_ip_test.rb
2016-10-19 04:42:50 +00:00
- rake db:drop
test:integration:user_agent:
2018-10-01 17:41:17 +00:00
<<: *artifacts_error
2016-10-19 04:42:50 +00:00
stage: test
2018-10-01 17:41:17 +00:00
variables:
RAILS_ENV: "test"
2016-10-19 04:42:50 +00:00
tags:
- core
script:
2018-10-01 17:41:17 +00:00
- rake zammad:db:unseeded
2016-10-19 04:42:50 +00:00
- ruby -I test/ test/integration/user_agent_test.rb
- export ZAMMAD_PROXY_TEST=true
- ruby -I test/ test/integration/user_agent_test.rb
- rake db:drop
allow_failure: true
2016-10-19 04:42:50 +00:00
test:integration:slack:
2018-10-01 17:41:17 +00:00
<<: *artifacts_error
2016-10-19 04:42:50 +00:00
stage: test
2018-10-01 17:41:17 +00:00
variables:
RAILS_ENV: "test"
2016-10-19 04:42:50 +00:00
tags:
- core
script:
2018-10-01 17:41:17 +00:00
- rake zammad:db:unseeded
2016-10-19 04:42:50 +00:00
- echo "gem 'slack-api'" >> Gemfile.local
2018-10-01 17:41:17 +00:00
- bundle install -j $(nproc)
2016-10-19 04:42:50 +00:00
- ruby -I test test/integration/slack_test.rb
- rake db:drop
test:integration:clearbit:
2018-10-01 17:41:17 +00:00
<<: *artifacts_error
2016-10-19 04:42:50 +00:00
stage: test
2018-10-01 17:41:17 +00:00
variables:
RAILS_ENV: "test"
2016-10-19 04:42:50 +00:00
tags:
- core
script:
2018-10-01 17:41:17 +00:00
- rake zammad:db:unseeded
2016-10-19 04:42:50 +00:00
- ruby -I test test/integration/clearbit_test.rb
- rake db:drop
2018-02-07 10:50:19 +00:00
allow_failure: true
2016-10-19 04:42:50 +00:00
2018-10-01 17:41:17 +00:00
### Elasticsearch
.script_elasticsearch_template: &script_elasticsearch_definition
<<: *artifacts_error
2016-10-19 04:42:50 +00:00
stage: test
2018-10-01 17:41:17 +00:00
variables:
RAILS_ENV: "test"
ES_INDEX_RAND: "true"
ES_URL: "http://localhost:9200"
2016-10-19 04:42:50 +00:00
script:
2018-10-01 17:41:17 +00:00
- rake zammad:db:unseeded
- ruby -I test/ test/integration/elasticsearch_active_test.rb
2016-10-19 04:42:50 +00:00
- ruby -I test/ test/integration/elasticsearch_test.rb
- ruby -I test/ test/integration/report_test.rb
- bundle exec rspec --tag searchindex
2016-10-19 04:42:50 +00:00
- rake db:drop
2018-10-01 17:41:17 +00:00
test:integration:es_mysql:
tags:
- core
- mysql
<<: *script_elasticsearch_definition
2016-10-19 04:42:50 +00:00
test:integration:es_postgresql:
tags:
- core
- postgresql
2018-10-01 17:41:17 +00:00
<<: *script_elasticsearch_definition
### Zendesk
.script_integration_zendesk_template: &script_integration_zendesk_definition
<<: *artifacts_error
stage: test
variables:
RAILS_ENV: "test"
2016-10-19 04:42:50 +00:00
script:
2018-10-01 17:41:17 +00:00
- rake zammad:db:unseeded
- ruby -I test/ test/integration/zendesk_import_test.rb
2016-10-19 04:42:50 +00:00
- rake db:drop
2018-10-01 17:41:17 +00:00
allow_failure: true
2016-10-19 04:42:50 +00:00
test:integration:zendesk_mysql:
tags:
- core
- mysql
2018-10-01 17:41:17 +00:00
<<: *script_integration_zendesk_definition
2016-10-19 04:42:50 +00:00
test:integration:zendesk_postgresql:
tags:
- core
- postgresql
2018-10-01 17:41:17 +00:00
<<: *script_integration_zendesk_definition
### OTRS
.script_integration_otrs_template: &script_integration_otrs_definition
<<: *artifacts_error
stage: test
2016-10-19 04:42:50 +00:00
script:
2018-10-01 17:41:17 +00:00
- rake zammad:db:unseeded
- ruby -I test/ test/integration/otrs_import_test.rb
2016-10-19 04:42:50 +00:00
- rake db:drop
2018-10-01 17:41:17 +00:00
.variables_integration_otrs_6_template: &variables_integration_otrs_6_definition
variables:
RAILS_ENV: "test"
IMPORT_OTRS_ENDPOINT: "https://vz1185.test.znuny.com/otrs/public.pl?Action=ZammadMigrator"
2016-10-19 04:42:50 +00:00
2018-01-05 14:43:58 +00:00
test:integration:otrs_6_mysql:
2016-10-19 04:42:50 +00:00
tags:
- core
- mysql
2018-10-01 17:41:17 +00:00
<<: *script_integration_otrs_definition
<<: *variables_integration_otrs_6_definition
2016-10-19 04:42:50 +00:00
2018-01-05 14:43:58 +00:00
test:integration:otrs_6_postgresql:
2016-10-19 04:42:50 +00:00
tags:
- core
- postgresql
2018-10-01 17:41:17 +00:00
<<: *script_integration_otrs_definition
<<: *variables_integration_otrs_6_definition
2018-01-05 14:43:58 +00:00
test:integration:otrs_5:
tags:
- core
2018-10-01 17:41:17 +00:00
variables:
RAILS_ENV: "test"
IMPORT_OTRS_ENDPOINT: "http://vz1109.demo.znuny.com/otrs/public.pl?Action=ZammadMigrator"
<<: *script_integration_otrs_definition
2016-10-19 04:42:50 +00:00
test:integration:otrs_4:
tags:
- core
2018-10-01 17:41:17 +00:00
variables:
RAILS_ENV: "test"
IMPORT_OTRS_ENDPOINT: "http://vz383.demo.znuny.com/otrs/public.pl?Action=ZammadMigrator"
<<: *script_integration_otrs_definition
2016-10-19 04:42:50 +00:00
test:integration:otrs_33:
tags:
- core
2018-10-01 17:41:17 +00:00
variables:
RAILS_ENV: "test"
IMPORT_OTRS_ENDPOINT: "http://vz305.demo.znuny.com/otrs/public.pl?Action=ZammadMigrator"
<<: *script_integration_otrs_definition
2016-10-19 04:42:50 +00:00
test:integration:otrs_32:
tags:
- core
2018-10-01 17:41:17 +00:00
variables:
RAILS_ENV: "test"
IMPORT_OTRS_ENDPOINT: "http://vz382.demo.znuny.com/otrs/public.pl?Action=ZammadMigrator"
<<: *script_integration_otrs_definition
2016-10-19 04:42:50 +00:00
test:integration:otrs_31:
tags:
- core
2018-10-01 17:41:17 +00:00
variables:
RAILS_ENV: "test"
IMPORT_OTRS_ENDPOINT: "http://vz381.demo.znuny.com/otrs/public.pl?Action=ZammadMigrator"
<<: *script_integration_otrs_definition
# Browser tests
## preparation (asset precompile)
2016-10-19 04:42:50 +00:00
browser:build:
stage: test
tags:
- core
2018-10-01 17:41:17 +00:00
variables:
RAILS_ENV: "production"
2016-10-19 04:42:50 +00:00
script:
2018-10-01 17:41:17 +00:00
- rake zammad:db:unseeded
2016-10-19 04:42:50 +00:00
- rake assets:precompile
- rake db:drop
artifacts:
2017-05-23 06:02:59 +00:00
expire_in: 1 week
2016-10-19 04:42:50 +00:00
paths:
- public/assets/.sprockets-manifest*
- public/assets/application-*
- public/assets/print-*
2018-10-01 17:41:17 +00:00
## Browser core tests
.variables_browser_template: &variables_browser_definition
RAILS_SERVE_STATIC_FILES: "true"
RAILS_ENV: "production"
BROWSER_URL: "http://$IP:$BROWSER_PORT"
APP_RESTART_CMD: "rake zammad:ci:app:restart"
.test_browser_core_template: &test_browser_core_definition
<<: *artifacts_error
stage: browser-core
2016-10-19 04:42:50 +00:00
dependencies:
- browser:build
2018-10-01 17:41:17 +00:00
### API clients
test:browser:integration:api_client_ruby:
<<: *test_browser_core_definition
variables:
<<: *variables_browser_definition
TEST_URL: "http://$IP:$BROWSER_PORT/"
2016-10-19 04:42:50 +00:00
tags:
- browser
script:
- RAILS_ENV=test rake db:create
- cp contrib/auto_wizard_test.json auto_wizard.json
2018-10-01 17:41:17 +00:00
- rake zammad:ci:test:start
- git clone git@github.com:zammad/zammad-api-client-ruby.git || rake zammad:ci:test:fail
- cd zammad-api-client-ruby
2018-10-01 17:41:17 +00:00
- bundle install -j $(nproc)
- bundle exec rspec || (cd .. && rake zammad:ci:test:fail)
- cd .. && rake zammad:ci:test:stop
2016-10-19 04:42:50 +00:00
test:browser:integration:api_client_php:
2018-10-01 17:41:17 +00:00
<<: *test_browser_core_definition
variables:
<<: *variables_browser_definition
ZAMMAD_PHP_API_CLIENT_UNIT_TESTS_URL: "http://$IP:$BROWSER_PORT"
ZAMMAD_PHP_API_CLIENT_UNIT_TESTS_USERNAME: "master@example.com"
ZAMMAD_PHP_API_CLIENT_UNIT_TESTS_PASSWORD: "test"
2016-10-19 04:42:50 +00:00
tags:
- browser
script:
- RAILS_ENV=test rake db:create
2018-10-01 17:41:17 +00:00
- rake zammad:ci:test:start zammad:setup:auto_wizard
- git clone git@github.com:zammad/zammad-api-client-php || rake zammad:ci:test:fail
2016-10-19 04:42:50 +00:00
- cd zammad-api-client-php
- composer install
2018-10-01 17:41:17 +00:00
- vendor/bin/phpunit || (cd .. && rake zammad:ci:test:fail)
- cd .. && rake zammad:ci:test:stop
2016-10-19 04:42:50 +00:00
2018-10-01 17:41:17 +00:00
### Browser test slices
2016-10-19 04:42:50 +00:00
2018-10-01 17:41:17 +00:00
#### Templates
2016-10-19 04:42:50 +00:00
2018-10-01 17:41:17 +00:00
.script_browser_slice_template: &script_browser_slice_definition
stage: browser-core
2016-10-19 04:42:50 +00:00
dependencies:
- browser:build
script:
2018-10-01 17:41:17 +00:00
# temporary workaround to check Yahoo! mailbox only in test:browser:core:ff_3_* tests
- if [[ $CI_JOB_NAME != test:browser:core:ff_3_* ]]; then unset MAILBOX_AUTO1 ; fi
- if [[ $CI_JOB_NAME != test:browser:core:ff_3_* ]]; then unset MAILBOX_AUTO2 ; fi
- if [[ $CI_JOB_NAME != test:browser:core:ff_3_* ]]; then unset MAILBOX_MANUAL1 ; fi
- if [[ $CI_JOB_NAME != test:browser:core:ff_3_* ]]; then unset MAILBOX_MANUAL2 ; fi
- env
- script/build/test_slice_tests.sh $TEST_SLICE
2016-10-19 04:42:50 +00:00
- RAILS_ENV=test rake db:create
2018-10-01 17:41:17 +00:00
- rake zammad:ci:test:start[with_elasticsearch]
- rake test:browser || rake zammad:ci:test:fail
- rake zammad:ci:test:stop
2016-10-19 04:42:50 +00:00
2018-10-01 17:41:17 +00:00
.test_browser_core_postgresql_template: &test_browser_core_postgresql_definition
<<: *test_browser_core_definition
2016-10-19 04:42:50 +00:00
tags:
- browser
2018-10-01 17:41:17 +00:00
- postgresql
<<: *script_browser_slice_definition
2016-10-19 04:42:50 +00:00
2018-10-01 17:41:17 +00:00
.test_browser_core_mysql_template: &test_browser_core_mysql_definition
<<: *test_browser_core_definition
2016-10-19 04:42:50 +00:00
tags:
- browser
- mysql
2018-10-01 17:41:17 +00:00
<<: *script_browser_slice_definition
#### Firefox
test:browser:core:ff_1_mysql:
<<: *test_browser_core_mysql_definition
variables:
<<: *variables_browser_definition
BROWSER: "firefox"
TEST_SLICE: "1"
test:browser:core:ff_2_mysql:
<<: *test_browser_core_mysql_definition
variables:
<<: *variables_browser_definition
BROWSER: "firefox"
TEST_SLICE: "2"
2016-10-19 04:42:50 +00:00
test:browser:core:ff_3_mysql:
2018-10-01 17:41:17 +00:00
<<: *test_browser_core_mysql_definition
variables:
<<: *variables_browser_definition
BROWSER: "firefox"
TEST_SLICE: "3"
2016-10-19 04:42:50 +00:00
test:browser:core:ff_4_mysql:
2018-10-01 17:41:17 +00:00
<<: *test_browser_core_mysql_definition
variables:
<<: *variables_browser_definition
BROWSER: "firefox"
TEST_SLICE: "4"
2016-10-19 04:42:50 +00:00
test:browser:core:ff_5_mysql:
2018-10-01 17:41:17 +00:00
<<: *test_browser_core_mysql_definition
variables:
<<: *variables_browser_definition
BROWSER: "firefox"
TEST_SLICE: "5"
2016-10-19 04:42:50 +00:00
test:browser:core:ff_6_mysql:
2018-10-01 17:41:17 +00:00
<<: *test_browser_core_mysql_definition
variables:
<<: *variables_browser_definition
BROWSER: "firefox"
TEST_SLICE: "6"
2016-10-19 04:42:50 +00:00
test:browser:core:ff_1_postgresql:
2018-10-01 17:41:17 +00:00
<<: *test_browser_core_postgresql_definition
variables:
<<: *variables_browser_definition
BROWSER: "firefox"
TEST_SLICE: "1"
2016-10-19 04:42:50 +00:00
test:browser:core:ff_2_postgresql:
2018-10-01 17:41:17 +00:00
<<: *test_browser_core_postgresql_definition
variables:
<<: *variables_browser_definition
BROWSER: "firefox"
TEST_SLICE: "2"
2016-10-19 04:42:50 +00:00
test:browser:core:ff_3_postgresql:
2018-10-01 17:41:17 +00:00
<<: *test_browser_core_postgresql_definition
variables:
<<: *variables_browser_definition
BROWSER: "firefox"
TEST_SLICE: "3"
2016-10-19 04:42:50 +00:00
test:browser:core:ff_4_postgresql:
2018-10-01 17:41:17 +00:00
<<: *test_browser_core_postgresql_definition
variables:
<<: *variables_browser_definition
BROWSER: "firefox"
TEST_SLICE: "4"
2016-10-19 04:42:50 +00:00
test:browser:core:ff_5_postgresql:
2018-10-01 17:41:17 +00:00
<<: *test_browser_core_postgresql_definition
variables:
<<: *variables_browser_definition
BROWSER: "firefox"
TEST_SLICE: "5"
2016-10-19 04:42:50 +00:00
test:browser:core:ff_6_postgresql:
2018-10-01 17:41:17 +00:00
<<: *test_browser_core_postgresql_definition
variables:
<<: *variables_browser_definition
BROWSER: "firefox"
TEST_SLICE: "6"
### Chrome
2016-10-19 04:42:50 +00:00
test:browser:core:chrome_1_mysql:
2018-10-01 17:41:17 +00:00
<<: *test_browser_core_mysql_definition
variables:
<<: *variables_browser_definition
BROWSER: "chrome"
TEST_SLICE: "1"
2016-10-19 04:42:50 +00:00
test:browser:core:chrome_2_mysql:
2018-10-01 17:41:17 +00:00
<<: *test_browser_core_mysql_definition
variables:
<<: *variables_browser_definition
BROWSER: "chrome"
TEST_SLICE: "2"
2016-10-19 04:42:50 +00:00
test:browser:core:chrome_3_mysql:
2018-10-01 17:41:17 +00:00
<<: *test_browser_core_mysql_definition
variables:
<<: *variables_browser_definition
BROWSER: "chrome"
TEST_SLICE: "3"
2016-10-19 04:42:50 +00:00
test:browser:core:chrome_4_mysql:
2018-10-01 17:41:17 +00:00
<<: *test_browser_core_mysql_definition
variables:
<<: *variables_browser_definition
BROWSER: "chrome"
TEST_SLICE: "4"
2016-10-19 04:42:50 +00:00
test:browser:core:chrome_5_mysql:
2018-10-01 17:41:17 +00:00
<<: *test_browser_core_mysql_definition
variables:
<<: *variables_browser_definition
BROWSER: "chrome"
TEST_SLICE: "5"
2016-10-19 04:42:50 +00:00
test:browser:core:chrome_6_mysql:
2018-10-01 17:41:17 +00:00
<<: *test_browser_core_mysql_definition
variables:
<<: *variables_browser_definition
BROWSER: "chrome"
TEST_SLICE: "6"
2016-10-19 04:42:50 +00:00
test:browser:core:chrome_1_postgresql:
2018-10-01 17:41:17 +00:00
<<: *test_browser_core_postgresql_definition
variables:
<<: *variables_browser_definition
BROWSER: "chrome"
TEST_SLICE: "1"
2016-10-19 04:42:50 +00:00
test:browser:core:chrome_2_postgresql:
2018-10-01 17:41:17 +00:00
<<: *test_browser_core_postgresql_definition
variables:
<<: *variables_browser_definition
BROWSER: "chrome"
TEST_SLICE: "2"
2016-10-19 04:42:50 +00:00
test:browser:core:chrome_3_postgresql:
2018-10-01 17:41:17 +00:00
<<: *test_browser_core_postgresql_definition
variables:
<<: *variables_browser_definition
BROWSER: "chrome"
TEST_SLICE: "3"
2016-10-19 04:42:50 +00:00
test:browser:core:chrome_4_postgresql:
2018-10-01 17:41:17 +00:00
<<: *test_browser_core_postgresql_definition
variables:
<<: *variables_browser_definition
BROWSER: "chrome"
TEST_SLICE: "4"
2016-10-19 04:42:50 +00:00
test:browser:core:chrome_5_postgresql:
2018-10-01 17:41:17 +00:00
<<: *test_browser_core_postgresql_definition
variables:
<<: *variables_browser_definition
BROWSER: "chrome"
TEST_SLICE: "5"
2016-10-19 04:42:50 +00:00
test:browser:core:chrome_6_postgresql:
2018-10-01 17:41:17 +00:00
<<: *test_browser_core_postgresql_definition
variables:
<<: *variables_browser_definition
BROWSER: "chrome"
TEST_SLICE: "6"
### Auto wizard
.test_browser_integration_template: &test_browser_integration_definition
<<: *artifacts_error
stage: browser-integration
2016-10-19 04:42:50 +00:00
dependencies:
- browser:build
2018-10-01 17:41:17 +00:00
.script_integration_auto_wizard_template: &script_integration_auto_wizard_definition
2016-10-19 04:42:50 +00:00
script:
- RAILS_ENV=test rake db:create
2018-10-01 17:41:17 +00:00
- cp $AUTO_WIZARD_FILE auto_wizard.json
- rake zammad:ci:test:start[with_elasticsearch]
- ruby -I test/ $TEST_FILE || rake zammad:ci:test:fail
- rake zammad:ci:test:stop
.browser_core_auto_wizard_template: &browser_core_auto_wizard_definition
<<: *test_browser_core_definition
<<: *script_integration_auto_wizard_definition
2016-10-19 04:42:50 +00:00
test:browser:autowizard_chrome:
2018-10-01 17:41:17 +00:00
<<: *browser_core_auto_wizard_definition
2016-10-19 04:42:50 +00:00
tags:
- browser
2018-10-01 17:41:17 +00:00
variables:
<<: *variables_browser_definition
BROWSER: "chrome"
AUTO_WIZARD_FILE: "contrib/auto_wizard_example.json"
TEST_FILE: "test/integration/auto_wizard_browser_test.rb"
test:browser:autowizard_ff:
<<: *browser_core_auto_wizard_definition
tags:
- browser
variables:
<<: *variables_browser_definition
BROWSER: "firefox"
AUTO_WIZARD_FILE: "contrib/auto_wizard_example.json"
TEST_FILE: "test/integration/auto_wizard_browser_test.rb"
### Browser integration tests
.browser_integration_auto_wizard_template: &browser_integration_auto_wizard_definition
<<: *test_browser_integration_definition
<<: *script_integration_auto_wizard_definition
2016-10-19 04:42:50 +00:00
test:browser:integration:twitter_chrome:
2018-10-01 17:41:17 +00:00
<<: *browser_integration_auto_wizard_definition
2016-10-19 04:42:50 +00:00
tags:
- browser
- twitter
2018-10-01 17:41:17 +00:00
variables:
<<: *variables_browser_definition
BROWSER: "chrome"
AUTO_WIZARD_FILE: "contrib/auto_wizard_test.json"
TEST_FILE: "test/integration/twitter_browser_test.rb"
2016-10-19 04:42:50 +00:00
2018-10-01 17:41:17 +00:00
test:browser:integration:twitter_ff:
<<: *browser_integration_auto_wizard_definition
2016-10-19 04:42:50 +00:00
tags:
- browser
2018-10-01 17:41:17 +00:00
- twitter
variables:
<<: *variables_browser_definition
BROWSER: "firefox"
AUTO_WIZARD_FILE: "contrib/auto_wizard_test.json"
TEST_FILE: "test/integration/twitter_browser_test.rb"
2016-10-19 04:42:50 +00:00
2018-10-01 17:41:17 +00:00
test:browser:integration:facebook_chrome:
<<: *browser_integration_auto_wizard_definition
2016-10-19 04:42:50 +00:00
tags:
- browser
2018-10-01 17:41:17 +00:00
- facebook
variables:
<<: *variables_browser_definition
BROWSER: "chrome"
AUTO_WIZARD_FILE: "contrib/auto_wizard_test.json"
TEST_FILE: "test/integration/facebook_browser_test.rb"
2016-10-19 04:42:50 +00:00
2018-10-01 17:41:17 +00:00
test:browser:integration:facebook_ff:
<<: *browser_integration_auto_wizard_definition
2016-10-19 04:42:50 +00:00
tags:
- browser
2018-10-01 17:41:17 +00:00
- facebook
variables:
<<: *variables_browser_definition
BROWSER: "firefox"
AUTO_WIZARD_FILE: "contrib/auto_wizard_test.json"
TEST_FILE: "test/integration/facebook_browser_test.rb"
test:browser:integration:idoit_chrome:
2018-10-01 17:41:17 +00:00
<<: *browser_integration_auto_wizard_definition
tags:
- browser
2018-10-01 17:41:17 +00:00
variables:
<<: *variables_browser_definition
BROWSER: "chrome"
AUTO_WIZARD_FILE: "contrib/auto_wizard_test.json"
TEST_FILE: "test/integration/idoit_browser_test.rb"
### Browser integration tests
.variables_browser_import_template: &variables_browser_import_definition
BROWSER: "chrome"
BROWSER_URL: "http://$IP:$BROWSER_PORT"
.browser_integration_import_template: &browser_integration_import_definition
<<: *test_browser_integration_definition
tags:
- browser
script:
- RAILS_ENV=test rake db:create
2018-10-01 17:41:17 +00:00
- rake zammad:ci:test:start
- ruby -I test/ $TEST_FILE
- rake zammad:ci:test:stop
test:browser:integration:otrs_chrome:
<<: *browser_integration_import_definition
variables:
<<: *variables_browser_import_definition
TEST_FILE: "test/integration/otrs_import_browser_test.rb"
test:browser:integration:zendesk_chrome:
<<: *browser_integration_import_definition
variables:
<<: *variables_browser_import_definition
TEST_FILE: "test/integration/zendesk_import_browser_test.rb"