2015-11-22 14:58:06 +00:00
|
|
|
before_script:
|
|
|
|
- bundle install
|
|
|
|
|
|
|
|
stages:
|
2015-11-23 13:04:25 +00:00
|
|
|
- pre
|
2015-11-22 14:58:06 +00:00
|
|
|
- test
|
2015-11-23 10:06:49 +00:00
|
|
|
- browser
|
2015-11-22 14:58:06 +00:00
|
|
|
|
2015-11-23 10:23:05 +00:00
|
|
|
rubocop:
|
2015-11-23 13:04:25 +00:00
|
|
|
stage: pre
|
2015-11-23 10:23:05 +00:00
|
|
|
script:
|
|
|
|
- bundle exec rubocop
|
|
|
|
|
2015-11-22 14:58:06 +00:00
|
|
|
job_unit:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- export RAILS_ENV=test
|
2015-11-23 10:23:05 +00:00
|
|
|
- script/build/test_db_config.sh test ci_zammad_unit
|
2015-11-22 14:58:06 +00:00
|
|
|
- rake db:drop;
|
|
|
|
- rake db:create
|
|
|
|
- rake db:migrate
|
|
|
|
- rake db:seed
|
|
|
|
- rake test:units
|
|
|
|
- rake test:controllers
|
|
|
|
|
|
|
|
job_integration_email_helper:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- export RAILS_ENV=test
|
2015-11-23 10:23:05 +00:00
|
|
|
- script/build/test_db_config.sh test ci_zammad_email_helper
|
2015-11-22 14:58:06 +00:00
|
|
|
- rake db:drop;
|
|
|
|
- rake db:create
|
|
|
|
- rake db:migrate
|
|
|
|
- ruby -I test/ test/integration/email_helper_test.rb
|
|
|
|
|
|
|
|
job_integration_geo_ip:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- export RAILS_ENV=test
|
2015-11-23 10:23:05 +00:00
|
|
|
- script/build/test_db_config.sh test ci_zammad_geo_ip
|
2015-11-22 14:58:06 +00:00
|
|
|
- rake db:drop;
|
|
|
|
- rake db:create
|
|
|
|
- rake db:migrate
|
|
|
|
- ruby -I test/ test/integration/geo_ip_test.rb
|
|
|
|
|
2015-11-22 15:11:49 +00:00
|
|
|
job_integration_geo_location:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- export RAILS_ENV=test
|
2015-11-23 10:23:05 +00:00
|
|
|
- script/build/test_db_config.sh test ci_zammad_geo_location
|
2015-11-22 15:11:49 +00:00
|
|
|
- rake db:drop;
|
|
|
|
- rake db:create
|
|
|
|
- rake db:migrate
|
|
|
|
- ruby -I test/ test/integration/geo_location_test.rb
|
|
|
|
|
|
|
|
job_integration_geo_calendar:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- export RAILS_ENV=test
|
2015-11-23 10:23:05 +00:00
|
|
|
- script/build/test_db_config.sh test ci_zammad_geo_calendar
|
2015-11-22 15:11:49 +00:00
|
|
|
- rake db:drop;
|
|
|
|
- rake db:create
|
|
|
|
- rake db:migrate
|
|
|
|
- ruby -I test/ test/integration/geo_calendar_test.rb
|
|
|
|
|
|
|
|
job_integration_user_agent:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- export RAILS_ENV=test
|
2015-11-23 10:23:05 +00:00
|
|
|
- script/build/test_db_config.sh test ci_zammad_user_agent
|
2015-11-22 15:11:49 +00:00
|
|
|
- rake db:drop;
|
|
|
|
- rake db:create
|
|
|
|
- rake db:migrate
|
|
|
|
- ruby -I test/ test/integration/user_agent_test.rb
|
|
|
|
|
2015-11-22 15:32:18 +00:00
|
|
|
job_integration_es:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- export RAILS_ENV=test
|
2015-11-23 10:23:05 +00:00
|
|
|
- script/build/test_db_config.sh test ci_zammad_es
|
2015-11-22 15:32:18 +00:00
|
|
|
- rake db:drop;
|
|
|
|
- rake db:create
|
|
|
|
- rake db:migrate
|
|
|
|
- ruby -I test/ test/integration/elasticsearch_test.rb
|
|
|
|
- ruby -I test/ test/controllers/search_controller_test.rb
|
2015-11-22 15:55:59 +00:00
|
|
|
- ruby -I test/ test/integration/report_test.rb
|
|
|
|
|
|
|
|
job_integration_otrs_5:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- export RAILS_ENV=test
|
2015-11-22 16:09:31 +00:00
|
|
|
- export IMPORT_OTRS_ENDPOINT="http://vz599.demo.znuny.com/otrs/public.pl?Action=ZammadMigrator"
|
2015-11-23 10:23:05 +00:00
|
|
|
- script/build/test_db_config.sh test ci_zammad_otrs5
|
2015-11-22 15:55:59 +00:00
|
|
|
- rake db:drop;
|
|
|
|
- rake db:create
|
|
|
|
- rake db:migrate
|
|
|
|
- ruby -I test/ test/integration/otrs_import_test.rb
|
2015-11-22 15:32:18 +00:00
|
|
|
|
2015-11-22 19:29:00 +00:00
|
|
|
job_integration_otrs_4:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- export RAILS_ENV=test
|
|
|
|
- export IMPORT_OTRS_ENDPOINT="http://vz383.demo.znuny.com/otrs/public.pl?Action=ZammadMigrator"
|
2015-11-23 10:23:05 +00:00
|
|
|
- script/build/test_db_config.sh test ci_zammad_otrs4
|
2015-11-22 19:29:00 +00:00
|
|
|
- rake db:drop;
|
|
|
|
- rake db:create
|
|
|
|
- rake db:migrate
|
|
|
|
- ruby -I test/ test/integration/otrs_import_test.rb
|
|
|
|
|
|
|
|
job_integration_otrs_33:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- export RAILS_ENV=test
|
|
|
|
- export IMPORT_OTRS_ENDPOINT="http://vz305.demo.znuny.com/otrs/public.pl?Action=ZammadMigrator"
|
2015-11-23 10:23:05 +00:00
|
|
|
- script/build/test_db_config.sh test ci_zammad_otrs33
|
2015-11-22 19:29:00 +00:00
|
|
|
- rake db:drop;
|
|
|
|
- rake db:create
|
|
|
|
- rake db:migrate
|
|
|
|
- ruby -I test/ test/integration/otrs_import_test.rb
|
|
|
|
|
|
|
|
job_integration_otrs_32:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- export RAILS_ENV=test
|
|
|
|
- export IMPORT_OTRS_ENDPOINT="http://vz382.demo.znuny.com/otrs/public.pl?Action=ZammadMigrator"
|
2015-11-23 10:23:05 +00:00
|
|
|
- script/build/test_db_config.sh test ci_zammad_otrs32
|
2015-11-22 19:29:00 +00:00
|
|
|
- rake db:drop;
|
|
|
|
- rake db:create
|
|
|
|
- rake db:migrate
|
|
|
|
- ruby -I test/ test/integration/otrs_import_test.rb
|
|
|
|
|
|
|
|
job_integration_otrs_31:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- export RAILS_ENV=test
|
|
|
|
- export IMPORT_OTRS_ENDPOINT="http://vz381.demo.znuny.com/otrs/public.pl?Action=ZammadMigrator"
|
2015-11-23 10:23:05 +00:00
|
|
|
- script/build/test_db_config.sh test ci_zammad_otrs31
|
2015-11-22 19:29:00 +00:00
|
|
|
- rake db:drop;
|
|
|
|
- rake db:create
|
|
|
|
- rake db:migrate
|
|
|
|
- ruby -I test/ test/integration/otrs_import_test.rb
|
|
|
|
|
2015-11-23 10:06:49 +00:00
|
|
|
job_integration_autowizard:
|
|
|
|
stage: browser
|
2015-11-27 11:13:34 +00:00
|
|
|
tags:
|
|
|
|
- browser-ff
|
2015-11-23 10:06:49 +00:00
|
|
|
script:
|
2015-11-27 11:13:34 +00:00
|
|
|
- export BROWSER_URL=http://$IP:3001
|
2015-11-23 10:23:05 +00:00
|
|
|
- script/build/test_db_config.sh production ci_zammad_autowizard
|
2015-11-23 13:04:25 +00:00
|
|
|
- script/build/test_db_config.sh test ci_zammad_autowizard_test
|
2015-11-23 13:56:11 +00:00
|
|
|
- RAILS_ENV=test rake db:create
|
2015-11-23 10:06:49 +00:00
|
|
|
- cp contrib/auto_wizard_example.json auto_wizard.json
|
|
|
|
- script/bootstrap.sh
|
|
|
|
- rake assets:precompile
|
2015-11-27 11:13:34 +00:00
|
|
|
- script/build/test_startup.sh $RAILS_ENV 3001 3002
|
2015-11-27 01:20:33 +00:00
|
|
|
- ruby -I test/ test/integration/auto_wizard_test.rb || script/build/test_shutdown.sh $RAILS_ENV 3011 3012 1
|
2015-11-27 11:13:34 +00:00
|
|
|
- script/build/test_shutdown.sh $RAILS_ENV 3001 3002
|
2015-11-27 01:20:33 +00:00
|
|
|
|
2015-11-27 09:50:37 +00:00
|
|
|
job_integration_browser_ff_1:
|
2015-11-27 01:20:33 +00:00
|
|
|
stage: browser
|
2015-11-27 11:13:34 +00:00
|
|
|
tags:
|
|
|
|
- browser-ff
|
2015-11-27 01:20:33 +00:00
|
|
|
script:
|
2015-11-27 11:13:34 +00:00
|
|
|
- export BROWSER_URL=http://$IP:3011
|
2015-11-27 10:13:17 +00:00
|
|
|
- unset MAILBOX_AUTO1
|
|
|
|
- unset MAILBOX_AUTO2
|
|
|
|
- unset MAILBOX_MANUAL1
|
|
|
|
- unset MAILBOX_MANUAL2
|
2015-11-27 09:50:37 +00:00
|
|
|
- script/build/test_db_config.sh production ci_zammad_browser_ff_1
|
|
|
|
- script/build/test_db_config.sh test ci_zammad_browser_ff_1_test
|
|
|
|
- script/build/test_slice_tests.sh 1
|
2015-11-27 01:20:33 +00:00
|
|
|
- RAILS_ENV=test rake db:create
|
|
|
|
- script/bootstrap.sh
|
|
|
|
- rake assets:precompile
|
2015-11-27 11:13:34 +00:00
|
|
|
- script/build/test_startup.sh $RAILS_ENV 3011 3012
|
|
|
|
- rake test:browser || script/build/test_shutdown.sh $RAILS_ENV 3011 3012 1
|
|
|
|
- script/build/test_shutdown.sh $RAILS_ENV 3011 3012
|
|
|
|
|
|
|
|
job_integration_browser_ff_2:
|
|
|
|
stage: browser
|
|
|
|
tags:
|
|
|
|
- browser-ff
|
|
|
|
script:
|
|
|
|
- export BROWSER_URL=http://$IP:3021
|
|
|
|
- unset MAILBOX_AUTO1
|
|
|
|
- unset MAILBOX_AUTO2
|
|
|
|
- unset MAILBOX_MANUAL1
|
|
|
|
- unset MAILBOX_MANUAL2
|
|
|
|
- script/build/test_db_config.sh production ci_zammad_browser_ff_2
|
|
|
|
- script/build/test_db_config.sh test ci_zammad_browser_ff_2_test
|
|
|
|
- script/build/test_slice_tests.sh 2
|
|
|
|
- RAILS_ENV=test rake db:create
|
|
|
|
- script/bootstrap.sh
|
|
|
|
- rake assets:precompile
|
2015-11-27 01:20:33 +00:00
|
|
|
- script/build/test_startup.sh $RAILS_ENV 3021 3022
|
|
|
|
- rake test:browser || script/build/test_shutdown.sh $RAILS_ENV 3021 3022 1
|
|
|
|
- script/build/test_shutdown.sh $RAILS_ENV 3021 3022
|