2015-11-22 14:58:06 +00:00
|
|
|
before_script:
|
|
|
|
- bundle install
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
|
|
|
|
job_unit:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- export RAILS_ENV=test
|
|
|
|
- script/build/test_db_config.sh ci_zammad_unit
|
|
|
|
- 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
|
|
|
|
- script/build/test_db_config.sh ci_zammad_email_helper
|
|
|
|
- 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
|
|
|
|
- script/build/test_db_config.sh ci_zammad_geo_ip
|
|
|
|
- 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
|
|
|
|
- script/build/test_db_config.sh ci_zammad_geo_location
|
|
|
|
- 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
|
|
|
|
- script/build/test_db_config.sh ci_zammad_geo_calendar
|
|
|
|
- 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
|
|
|
|
- script/build/test_db_config.sh ci_zammad_user_agent
|
|
|
|
- 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
|
|
|
|
- script/build/test_db_config.sh ci_zammad_es
|
|
|
|
- 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-22 15:55:59 +00:00
|
|
|
- script/build/test_db_config.sh ci_zammad_otrs5
|
|
|
|
- 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"
|
|
|
|
- script/build/test_db_config.sh ci_zammad_otrs4
|
|
|
|
- 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"
|
|
|
|
- script/build/test_db_config.sh ci_zammad_otrs33
|
|
|
|
- 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"
|
|
|
|
- script/build/test_db_config.sh ci_zammad_otrs32
|
|
|
|
- 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"
|
|
|
|
- script/build/test_db_config.sh ci_zammad_otrs31
|
|
|
|
- rake db:drop;
|
|
|
|
- rake db:create
|
|
|
|
- rake db:migrate
|
|
|
|
- ruby -I test/ test/integration/otrs_import_test.rb
|
|
|
|
|
2015-11-22 14:58:06 +00:00
|
|
|
rubocop:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- bundle exec rubocop
|