123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421 |
- before_script:
- - bundle install
- - script/build/test_db_config.sh
- stages:
- - pre
- - test
- - browser
- rubocop:
- stage: pre
- tags:
- - core
- script:
- - bundle exec rubocop
- coffeelint:
- stage: pre
- tags:
- - core
- script:
- - coffeelint app/
- job_unit:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=test
- - rake db:drop;
- - rake db:create
- - rake db:migrate
- - rake db:seed
- - rake test:units
- - rake test:controllers
- job_integration_email_helper:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=test
- - rake db:drop;
- - rake db:create
- - rake db:migrate
- - ruby -I test/ test/integration/email_helper_test.rb
- job_integration_twitter:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=test
- - rake db:drop;
- - rake db:create
- - rake db:migrate
- - rake db:seed
- - ruby -I test/ test/integration/twitter_test.rb
- job_integration_geo_ip:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=test
- - rake db:drop;
- - rake db:create
- - rake db:migrate
- - ruby -I test/ test/integration/geo_ip_test.rb
- job_integration_geo_location:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=test
- - rake db:drop;
- - rake db:create
- - rake db:migrate
- - ruby -I test/ test/integration/geo_location_test.rb
- job_integration_geo_calendar:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=test
- - rake db:drop;
- - rake db:create
- - rake db:migrate
- - ruby -I test/ test/integration/geo_calendar_test.rb
- job_integration_user_agent:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=test
- - rake db:drop;
- - rake db:create
- - rake db:migrate
- - ruby -I test/ test/integration/user_agent_test.rb
- job_integration_es:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=test
- - export ES_INDEX="estest.local_zammad_"$RNAME
- - export ES_URL="http://localhost:9200"
- - 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
- - ruby -I test/ test/integration/report_test.rb
- job_integration_zendesk:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=test
- - rake db:drop;
- - rake db:create
- - rake db:migrate
- - ruby -I test/ test/integration/zendesk_import_test.rb
- job_integration_otrs_5:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=test
- - export IMPORT_OTRS_ENDPOINT="http://vz599.demo.znuny.com/otrs/public.pl?Action=ZammadMigrator"
- - rake db:drop;
- - rake db:create
- - rake db:migrate
- - ruby -I test/ test/integration/otrs_import_test.rb
- job_integration_otrs_4:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=test
- - export IMPORT_OTRS_ENDPOINT="http://vz383.demo.znuny.com/otrs/public.pl?Action=ZammadMigrator"
- - rake db:drop;
- - rake db:create
- - rake db:migrate
- - ruby -I test/ test/integration/otrs_import_test.rb
- job_integration_otrs_33:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=test
- - export IMPORT_OTRS_ENDPOINT="http://vz305.demo.znuny.com/otrs/public.pl?Action=ZammadMigrator"
- - rake db:drop;
- - rake db:create
- - rake db:migrate
- - ruby -I test/ test/integration/otrs_import_test.rb
- job_integration_otrs_32:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=test
- - export IMPORT_OTRS_ENDPOINT="http://vz382.demo.znuny.com/otrs/public.pl?Action=ZammadMigrator"
- - rake db:drop;
- - rake db:create
- - rake db:migrate
- - ruby -I test/ test/integration/otrs_import_test.rb
- job_integration_otrs_31:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=test
- - export IMPORT_OTRS_ENDPOINT="http://vz381.demo.znuny.com/otrs/public.pl?Action=ZammadMigrator"
- - rake db:drop;
- - rake db:create
- - rake db:migrate
- - ruby -I test/ test/integration/otrs_import_test.rb
- job_integration_twitter_ff:
- stage: browser
- tags:
- - browser-ff
- - twitter
- script:
- - export BROWSER_PORT=3041
- - export WS_PORT=3042
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - RAILS_ENV=test rake db:create
- - cp contrib/auto_wizard_test.json auto_wizard.json
- - script/bootstrap.sh
- - rake assets:precompile
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT
- - ruby -I test/ test/integration/twitter_browser_test.rb || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT
- job_integration_facebook_ff:
- stage: browser
- tags:
- - browser-ff
- - facebook
- script:
- - export BROWSER_PORT=3051
- - export WS_PORT=3052
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - RAILS_ENV=test rake db:create
- - cp contrib/auto_wizard_test.json auto_wizard.json
- - script/bootstrap.sh
- - rake assets:precompile
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT
- - ruby -I test/ test/integration/facebook_browser_test.rb || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT
- job_integration_autowizard_ff:
- stage: browser
- tags:
- - browser-ff
- script:
- - export BROWSER_PORT=3001
- - export WS_PORT=3002
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - RAILS_ENV=test rake db:create
- - cp contrib/auto_wizard_example.json auto_wizard.json
- - script/bootstrap.sh
- - rake assets:precompile
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT
- - ruby -I test/ test/integration/auto_wizard_test.rb || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT
- job_integration_browser_ff_1:
- stage: browser
- tags:
- - browser-ff
- script:
- - export BROWSER_PORT=3011
- - export WS_PORT=3012
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - unset MAILBOX_AUTO1
- - unset MAILBOX_AUTO2
- - unset MAILBOX_MANUAL1
- - unset MAILBOX_MANUAL2
- - script/build/test_slice_tests.sh 1
- - RAILS_ENV=test rake db:create
- - script/bootstrap.sh
- - rake assets:precompile
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT
- job_integration_browser_ff_2:
- stage: browser
- tags:
- - browser-ff
- script:
- - export BROWSER_PORT=3021
- - export WS_PORT=3022
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - unset MAILBOX_AUTO1
- - unset MAILBOX_AUTO2
- - unset MAILBOX_MANUAL1
- - unset MAILBOX_MANUAL2
- - script/build/test_slice_tests.sh 2
- - RAILS_ENV=test rake db:create
- - script/bootstrap.sh
- - rake assets:precompile
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT
- job_integration_browser_ff_3:
- stage: browser
- tags:
- - browser-ff
- script:
- - export BROWSER_PORT=3031
- - export WS_PORT=3032
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - script/build/test_slice_tests.sh 3
- - RAILS_ENV=test rake db:create
- - script/bootstrap.sh
- - rake assets:precompile
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT
- job_integration_autowizard_chrome:
- stage: browser
- tags:
- - browser-chrome
- script:
- - export BROWSER_PORT=4001
- - export WS_PORT=4002
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - RAILS_ENV=test rake db:create
- - cp contrib/auto_wizard_example.json auto_wizard.json
- - script/bootstrap.sh
- - rake assets:precompile
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT
- - ruby -I test/ test/integration/auto_wizard_test.rb || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT
- job_integration_browser_chrome_1:
- stage: browser
- tags:
- - browser-chrome
- script:
- - export BROWSER_PORT=4011
- - export WS_PORT=4012
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - unset MAILBOX_AUTO1
- - unset MAILBOX_AUTO2
- - unset MAILBOX_MANUAL1
- - unset MAILBOX_MANUAL2
- - script/build/test_slice_tests.sh 1
- - RAILS_ENV=test rake db:create
- - script/bootstrap.sh
- - rake assets:precompile
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT
- job_integration_browser_chrome_2:
- stage: browser
- tags:
- - browser-chrome
- script:
- - export BROWSER_PORT=4021
- - export WS_PORT=4022
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - unset MAILBOX_AUTO1
- - unset MAILBOX_AUTO2
- - unset MAILBOX_MANUAL1
- - unset MAILBOX_MANUAL2
- - script/build/test_slice_tests.sh 2
- - RAILS_ENV=test rake db:create
- - script/bootstrap.sh
- - rake assets:precompile
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT
- job_integration_browser_chrome_3:
- stage: browser
- tags:
- - browser-chrome
- script:
- - export BROWSER_PORT=4031
- - export WS_PORT=4032
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - unset MAILBOX_AUTO1
- - unset MAILBOX_AUTO2
- - unset MAILBOX_MANUAL1
- - unset MAILBOX_MANUAL2
- - script/build/test_slice_tests.sh 3
- - RAILS_ENV=test rake db:create
- - script/bootstrap.sh
- - rake assets:precompile
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT
- job_integration_twitter_chrome:
- stage: browser
- tags:
- - browser-chrome
- - twitter
- script:
- - export BROWSER_PORT=4041
- - export WS_PORT=4042
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - RAILS_ENV=test rake db:create
- - cp contrib/auto_wizard_test.json auto_wizard.json
- - script/bootstrap.sh
- - rake assets:precompile
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT
- - ruby -I test/ test/integration/twitter_browser_test.rb || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT
- job_integration_facebook_chrome:
- stage: browser
- tags:
- - browser-chrome
- - facebook
- script:
- - export BROWSER_PORT=4051
- - export WS_PORT=4052
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - RAILS_ENV=test rake db:create
- - cp contrib/auto_wizard_test.json auto_wizard.json
- - script/bootstrap.sh
- - rake assets:precompile
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT
- - ruby -I test/ test/integration/facebook_browser_test.rb || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT
- job_integration_otrs_chrome:
- stage: browser
- tags:
- - browser-chrome
- script:
- - export BROWSER_PORT=4061
- - export WS_PORT=4062
- - export IMPORT_BT_OTRS_ENDPOINT="http://vz599.demo.znuny.com/otrs/public.pl?Action=ZammadMigrator"
- - export IMPORT_BT_OTRS_ENDPOINT_KEY="01234567899876543210"
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - RAILS_ENV=test rake db:create
- - script/bootstrap.sh
- - rake assets:precompile
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT
- - ruby -I test/ test/integration/otrs_import_browser_test.rb || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT
|