1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105 |
- before_script:
- - ruby -v
- - which ruby
- - env
- - test -n "$RNAME" && script/build/test_db_config.sh
- - test -n "$RNAME" && bundle install --jobs 8
- stages:
- - pre
- - test
- - browser-core
- - browser-integration
- pre:rubocop:
- stage: pre
- tags:
- - core
- script:
- - bundle exec rubocop
- pre:coffeelint:
- stage: pre
- tags:
- - core
- script:
- - coffeelint app/
- pre:bundle-audit:
- stage: pre
- tags:
- - core
- script:
- - gem install bundler-audit
- - bundle-audit update
- - bundle-audit
- pre:github:
- stage: pre
- tags:
- - deploy
- script:
- - script/build/sync_repo.sh git@github.com:zammad/zammad.git
- test:rspec:mysql:
- stage: test
- tags:
- - core
- - mysql
- script:
- - export RAILS_ENV=test
- - rake db:create
- - rake db:migrate
- - rake db:seed
- - rspec
- - rake db:drop
- test:rspec:postgresql:
- stage: test
- tags:
- - core
- - postgresql
- script:
- - export RAILS_ENV=test
- - rake db:create
- - rake db:migrate
- - rake db:seed
- - rspec
- - rake db:drop
- test:unit:mysql:
- stage: test
- tags:
- - core
- - mysql
- script:
- - export RAILS_ENV=test
- - rake db:create
- - rake db:migrate
- - rake db:seed
- - rake test:units
- - rake test:controllers
- - ruby -I test/ test/integration/object_manager_test.rb
- - ruby -I test/ test/integration/package_test.rb
- - rake db:drop
- test:unit:postgresql:
- stage: test
- tags:
- - core
- - postgresql
- script:
- - export RAILS_ENV=test
- - rake db:create
- - rake db:migrate
- - rake db:seed
- - rake test:units
- - rake test:controllers
- - ruby -I test/ test/integration/object_manager_test.rb
- - ruby -I test/ test/integration/package_test.rb
- - rake db:drop
- test:integration:autowizard:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=test
- - rake db:create
- - rake db:migrate
- - ruby -I test/ test/integration/auto_wizard_test.rb
- - rake db:drop
- test:integration:email_helper:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=test
- - rake db:create
- - rake db:migrate
- - ruby -I test/ test/integration/email_helper_test.rb
- - rake db:drop
- test:integration:email_deliver:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=test
- - rake db:create
- - rake db:migrate
- - ruby -I test/ test/integration/email_deliver_test.rb
- - rake db:drop
- test:integration:email_keep_on_server:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=test
- - rake db:create
- - rake db:migrate
- - ruby -I test/ test/integration/email_keep_on_server_test.rb
- - rake db:drop
- test:integration:twitter:
- stage: test
- tags:
- - core-twitter
- script:
- - export RAILS_ENV=test
- - rake db:create
- - rake db:migrate
- - rake db:seed
- - ruby -I test/ test/integration/twitter_test.rb
- - rake db:drop
- allow_failure: true
- test:integration:facebook:
- stage: test
- tags:
- - core-facebook
- script:
- - export RAILS_ENV=test
- - rake db:create
- - rake db:migrate
- - rake db:seed
- - ruby -I test/ test/integration/facebook_test.rb
- - rake db:drop
- allow_failure: true
- test:integration:geo_ip:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=test
- - rake db:create
- - rake db:migrate
- - ruby -I test/ test/integration/geo_ip_test.rb
- - rake db:drop
- test:integration:geo_location:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=test
- - rake db:create
- - rake db:migrate
- - ruby -I test/ test/integration/geo_location_test.rb
- - rake db:drop
- test:integration:geo_calendar:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=test
- - rake db:create
- - rake db:migrate
- - ruby -I test/ test/integration/geo_calendar_test.rb
- - rake db:drop
- test:integration:user_agent:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=test
- - rake db:create
- - rake db:migrate
- - ruby -I test/ test/integration/user_agent_test.rb
- - rake db:drop
- test:integration:user_agent_proxy:
- stage: test
- tags:
- - core
- script:
- - export ZAMMAD_PROXY_TEST=true
- - export RAILS_ENV=test
- - rake db:create
- - rake db:migrate
- - ruby -I test/ test/integration/user_agent_test.rb
- - rake db:drop
- test:integration:user_device:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=test
- - rake db:create
- - rake db:migrate
- - ruby -I test/ test/integration/user_device_controller_test.rb
- - rake db:drop
- test:integration:slack:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=test
- - rake db:create
- - rake db:migrate
- - echo "gem 'slack-api'" >> Gemfile.local
- - bundle install --jobs 8
- - ruby -I test test/integration/slack_test.rb
- - rake db:drop
- test:integration:clearbit:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=test
- - rake db:create
- - rake db:migrate
- - ruby -I test test/integration/clearbit_test.rb
- - rake db:drop
- test:integration:sipgate:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=test
- - rake db:create
- - rake db:migrate
- - ruby -I test test/integration/sipgate_controller_test.rb
- - rake db:drop
- test:integration:telegram:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=test
- - rake db:create
- - rake db:migrate
- - rake db:seed
- - ruby -I test test/integration/telegram_controller_test.rb
- - rake db:drop
- test:integration:idoit:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=test
- - rake db:create
- - rake db:migrate
- - rake db:seed
- - ruby -I test test/integration/idoit_controller_test.rb
- - rake db:drop
- test:integration:es_mysql:
- stage: test
- tags:
- - core
- - mysql
- script:
- - export RAILS_ENV=test
- - export ES_INDEX_RAND=true
- - export ES_URL="http://localhost:9200"
- - 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
- - ruby -I test/ test/controllers/form_controller_test.rb
- - ruby -I test/ test/controllers/user_organization_controller_test.rb
- - rake db:drop
- test:integration:es_postgresql:
- stage: test
- tags:
- - core
- - postgresql
- script:
- - export RAILS_ENV=test
- - export ES_INDEX_RAND=true
- - export ES_URL="http://localhost:9200"
- - 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
- - ruby -I test/ test/controllers/form_controller_test.rb
- - ruby -I test/ test/controllers/user_organization_controller_test.rb
- - rake db:drop
- test:integration:zendesk_mysql:
- stage: test
- tags:
- - core
- - mysql
- script:
- - export RAILS_ENV=test
- - rake db:create
- - rake db:migrate
- - ruby -I test/ test/integration/zendesk_import_test.rb
- - rake db:drop
- test:integration:zendesk_postgresql:
- stage: test
- tags:
- - core
- - postgresql
- script:
- - export RAILS_ENV=test
- - rake db:create
- - rake db:migrate
- - ruby -I test/ test/integration/zendesk_import_test.rb
- - rake db:drop
- test:integration:otrs_5_mysql:
- stage: test
- tags:
- - core
- - mysql
- script:
- - export RAILS_ENV=test
- - export IMPORT_OTRS_ENDPOINT="http://vz1109.demo.znuny.com/otrs/public.pl?Action=ZammadMigrator"
- - rake db:create
- - rake db:migrate
- - ruby -I test/ test/integration/otrs_import_test.rb
- - rake db:drop
- test:integration:otrs_5_postgresql:
- stage: test
- tags:
- - core
- - postgresql
- script:
- - export RAILS_ENV=test
- - export IMPORT_OTRS_ENDPOINT="http://vz1109.demo.znuny.com/otrs/public.pl?Action=ZammadMigrator"
- - rake db:create
- - rake db:migrate
- - ruby -I test/ test/integration/otrs_import_test.rb
- - rake db:drop
- test: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:create
- - rake db:migrate
- - ruby -I test/ test/integration/otrs_import_test.rb
- - rake db:drop
- test: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:create
- - rake db:migrate
- - ruby -I test/ test/integration/otrs_import_test.rb
- - rake db:drop
- test: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:create
- - rake db:migrate
- - ruby -I test/ test/integration/otrs_import_test.rb
- - rake db:drop
- test: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:create
- - rake db:migrate
- - ruby -I test/ test/integration/otrs_import_test.rb
- - rake db:drop
- browser:build:
- stage: test
- tags:
- - core
- script:
- - export RAILS_ENV=production
- - rake db:create
- - rake db:migrate
- - rake assets:precompile
- - rake db:drop
- artifacts:
- expire_in: 1 week
- paths:
- - public/assets/.sprockets-manifest*
- - public/assets/application-*
- - public/assets/print-*
- test:browser:integration:api_client_ruby:
- stage: browser-core
- dependencies:
- - browser:build
- tags:
- - browser
- script:
- - RAILS_ENV=test rake db:create
- - cp contrib/auto_wizard_test.json auto_wizard.json
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - git clone git@github.com:zammad/zammad-api-client-ruby.git || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - cd zammad-api-client-ruby
- - bundle install --jobs 8
- - export TEST_URL=http://$IP:$BROWSER_PORT
- - rspec || (cd .. && script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1)
- - cd .. && script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:integration:api_client_php:
- stage: browser-core
- dependencies:
- - browser:build
- tags:
- - browser
- script:
- - RAILS_ENV=test rake db:create
- - cp contrib/auto_wizard_test.json auto_wizard.json
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - git clone git@github.com:zammad/zammad-api-client-php || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - wget http://$IP:$BROWSER_PORT/api/v1/getting_started/auto_wizard
- - cd zammad-api-client-php
- - composer install
- - export ZAMMAD_PHP_API_CLIENT_UNIT_TESTS_URL=http://$IP:$BROWSER_PORT
- - export ZAMMAD_PHP_API_CLIENT_UNIT_TESTS_USERNAME=master@example.com
- - export ZAMMAD_PHP_API_CLIENT_UNIT_TESTS_PASSWORD=test
- - vendor/bin/phpunit || (cd .. && script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1)
- - cd .. && script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:twitter_ff:
- stage: browser-integration
- dependencies:
- - browser:build
- tags:
- - browser
- - twitter
- script:
- - export BROWSER=firefox
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - export APP_RESTART_CMD="script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 && script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 0"
- - RAILS_ENV=test rake db:create
- - cp contrib/auto_wizard_test.json auto_wizard.json
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - ruby -I test/ test/integration/twitter_browser_test.rb || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:facebook_ff:
- stage: browser-integration
- dependencies:
- - browser:build
- tags:
- - browser
- - facebook
- script:
- - export BROWSER=firefox
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - export APP_RESTART_CMD="script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 && script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 0"
- - RAILS_ENV=test rake db:create
- - cp contrib/auto_wizard_test.json auto_wizard.json
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - ruby -I test/ test/integration/facebook_browser_test.rb || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:autowizard_ff:
- stage: browser-core
- dependencies:
- - browser:build
- tags:
- - browser
- script:
- - export BROWSER=firefox
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - export APP_RESTART_CMD="script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 && script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 0"
- - RAILS_ENV=test rake db:create
- - cp contrib/auto_wizard_example.json auto_wizard.json
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - ruby -I test/ test/integration/auto_wizard_browser_test.rb || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:core:ff_1_mysql:
- stage: browser-core
- dependencies:
- - browser:build
- tags:
- - browser
- - mysql
- script:
- - export BROWSER=firefox
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - export APP_RESTART_CMD="script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 && script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 0"
- - 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/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:core:ff_2_mysql:
- stage: browser-core
- dependencies:
- - browser:build
- tags:
- - browser
- - mysql
- script:
- - export BROWSER=firefox
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - export APP_RESTART_CMD="script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 && script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 0"
- - 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/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:core:ff_3_mysql:
- stage: browser-core
- dependencies:
- - browser:build
- tags:
- - browser
- - mysql
- script:
- - export BROWSER=firefox
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - export APP_RESTART_CMD="script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 && script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 0"
- - script/build/test_slice_tests.sh 3
- - RAILS_ENV=test rake db:create
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:core:ff_4_mysql:
- stage: browser-core
- dependencies:
- - browser:build
- tags:
- - browser
- - mysql
- script:
- - export BROWSER=firefox
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - export APP_RESTART_CMD="script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 && script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 0"
- - unset MAILBOX_AUTO1
- - unset MAILBOX_AUTO2
- - unset MAILBOX_MANUAL1
- - unset MAILBOX_MANUAL2
- - script/build/test_slice_tests.sh 4
- - RAILS_ENV=test rake db:create
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:core:ff_5_mysql:
- stage: browser-core
- dependencies:
- - browser:build
- tags:
- - browser
- - mysql
- script:
- - export BROWSER=firefox
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - export APP_RESTART_CMD="script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 && script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 0"
- - unset MAILBOX_AUTO1
- - unset MAILBOX_AUTO2
- - unset MAILBOX_MANUAL1
- - unset MAILBOX_MANUAL2
- - script/build/test_slice_tests.sh 5
- - RAILS_ENV=test rake db:create
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:core:ff_6_mysql:
- stage: browser-core
- dependencies:
- - browser:build
- tags:
- - browser
- - mysql
- script:
- - export BROWSER=firefox
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - export APP_RESTART_CMD="script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 && script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 0"
- - unset MAILBOX_AUTO1
- - unset MAILBOX_AUTO2
- - unset MAILBOX_MANUAL1
- - unset MAILBOX_MANUAL2
- - script/build/test_slice_tests.sh 6
- - RAILS_ENV=test rake db:create
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:core:ff_1_postgresql:
- stage: browser-core
- dependencies:
- - browser:build
- tags:
- - browser
- - postgresql
- script:
- - export BROWSER=firefox
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - export APP_RESTART_CMD="script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 && script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 0"
- - 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/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:core:ff_2_postgresql:
- stage: browser-core
- dependencies:
- - browser:build
- tags:
- - browser
- - postgresql
- script:
- - export BROWSER=firefox
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - export APP_RESTART_CMD="script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 && script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 0"
- - 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/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:core:ff_3_postgresql:
- stage: browser-core
- dependencies:
- - browser:build
- tags:
- - browser
- - postgresql
- script:
- - export BROWSER=firefox
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - export APP_RESTART_CMD="script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 && script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 0"
- - script/build/test_slice_tests.sh 3
- - RAILS_ENV=test rake db:create
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:core:ff_4_postgresql:
- stage: browser-core
- dependencies:
- - browser:build
- tags:
- - browser
- - postgresql
- script:
- - export BROWSER=firefox
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - export APP_RESTART_CMD="script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 && script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 0"
- - unset MAILBOX_AUTO1
- - unset MAILBOX_AUTO2
- - unset MAILBOX_MANUAL1
- - unset MAILBOX_MANUAL2
- - script/build/test_slice_tests.sh 4
- - RAILS_ENV=test rake db:create
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:core:ff_5_postgresql:
- stage: browser-core
- dependencies:
- - browser:build
- tags:
- - browser
- - postgresql
- script:
- - export BROWSER=firefox
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - export APP_RESTART_CMD="script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 && script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 0"
- - unset MAILBOX_AUTO1
- - unset MAILBOX_AUTO2
- - unset MAILBOX_MANUAL1
- - unset MAILBOX_MANUAL2
- - script/build/test_slice_tests.sh 5
- - RAILS_ENV=test rake db:create
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:core:ff_6_postgresql:
- stage: browser-core
- dependencies:
- - browser:build
- tags:
- - browser
- - postgresql
- script:
- - export BROWSER=firefox
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - export APP_RESTART_CMD="script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 && script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 0"
- - unset MAILBOX_AUTO1
- - unset MAILBOX_AUTO2
- - unset MAILBOX_MANUAL1
- - unset MAILBOX_MANUAL2
- - script/build/test_slice_tests.sh 6
- - RAILS_ENV=test rake db:create
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:core:chrome_1_mysql:
- stage: browser-core
- dependencies:
- - browser:build
- tags:
- - browser
- - mysql
- script:
- - export BROWSER=chrome
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - export APP_RESTART_CMD="script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 && script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 0"
- - 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/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:core:chrome_2_mysql:
- stage: browser-core
- dependencies:
- - browser:build
- tags:
- - browser
- - mysql
- script:
- - export BROWSER=chrome
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - export APP_RESTART_CMD="script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 && script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 0"
- - 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/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:core:chrome_3_mysql:
- stage: browser-core
- dependencies:
- - browser:build
- tags:
- - browser
- - mysql
- script:
- - export BROWSER=chrome
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - export APP_RESTART_CMD="script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 && script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 0"
- - 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/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:core:chrome_4_mysql:
- stage: browser-core
- dependencies:
- - browser:build
- tags:
- - browser
- - mysql
- script:
- - export BROWSER=chrome
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - export APP_RESTART_CMD="script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 && script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 0"
- - unset MAILBOX_AUTO1
- - unset MAILBOX_AUTO2
- - unset MAILBOX_MANUAL1
- - unset MAILBOX_MANUAL2
- - script/build/test_slice_tests.sh 4
- - RAILS_ENV=test rake db:create
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:core:chrome_5_mysql:
- stage: browser-core
- dependencies:
- - browser:build
- tags:
- - browser
- - mysql
- script:
- - export BROWSER=chrome
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - export APP_RESTART_CMD="script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 && script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 0"
- - unset MAILBOX_AUTO1
- - unset MAILBOX_AUTO2
- - unset MAILBOX_MANUAL1
- - unset MAILBOX_MANUAL2
- - script/build/test_slice_tests.sh 5
- - RAILS_ENV=test rake db:create
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:core:chrome_6_mysql:
- stage: browser-core
- dependencies:
- - browser:build
- tags:
- - browser
- - mysql
- script:
- - export BROWSER=chrome
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - export APP_RESTART_CMD="script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 && script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 0"
- - unset MAILBOX_AUTO1
- - unset MAILBOX_AUTO2
- - unset MAILBOX_MANUAL1
- - unset MAILBOX_MANUAL2
- - script/build/test_slice_tests.sh 6
- - RAILS_ENV=test rake db:create
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:core:chrome_1_postgresql:
- stage: browser-core
- dependencies:
- - browser:build
- tags:
- - browser
- - postgresql
- script:
- - export BROWSER=chrome
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - export APP_RESTART_CMD="script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 && script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 0"
- - 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/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:core:chrome_2_postgresql:
- stage: browser-core
- dependencies:
- - browser:build
- tags:
- - browser
- - postgresql
- script:
- - export BROWSER=chrome
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - export APP_RESTART_CMD="script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 && script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 0"
- - 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/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:core:chrome_3_postgresql:
- stage: browser-core
- dependencies:
- - browser:build
- tags:
- - browser
- - postgresql
- script:
- - export BROWSER=chrome
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - export APP_RESTART_CMD="script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 && script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 0"
- - 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/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:core:chrome_4_postgresql:
- stage: browser-core
- dependencies:
- - browser:build
- tags:
- - browser
- - postgresql
- script:
- - export BROWSER=chrome
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - export APP_RESTART_CMD="script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 && script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 0"
- - unset MAILBOX_AUTO1
- - unset MAILBOX_AUTO2
- - unset MAILBOX_MANUAL1
- - unset MAILBOX_MANUAL2
- - script/build/test_slice_tests.sh 4
- - RAILS_ENV=test rake db:create
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:core:chrome_5_postgresql:
- stage: browser-core
- dependencies:
- - browser:build
- tags:
- - browser
- - postgresql
- script:
- - export BROWSER=chrome
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - export APP_RESTART_CMD="script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 && script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 0"
- - unset MAILBOX_AUTO1
- - unset MAILBOX_AUTO2
- - unset MAILBOX_MANUAL1
- - unset MAILBOX_MANUAL2
- - script/build/test_slice_tests.sh 5
- - RAILS_ENV=test rake db:create
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:core:chrome_6_postgresql:
- stage: browser-core
- dependencies:
- - browser:build
- tags:
- - browser
- - postgresql
- script:
- - export BROWSER=chrome
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - export APP_RESTART_CMD="script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 && script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 0"
- - unset MAILBOX_AUTO1
- - unset MAILBOX_AUTO2
- - unset MAILBOX_MANUAL1
- - unset MAILBOX_MANUAL2
- - script/build/test_slice_tests.sh 6
- - RAILS_ENV=test rake db:create
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:autowizard_chrome:
- stage: browser-core
- dependencies:
- - browser:build
- tags:
- - browser
- script:
- - export BROWSER=chrome
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - RAILS_ENV=test rake db:create
- - cp contrib/auto_wizard_example.json auto_wizard.json
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - ruby -I test/ test/integration/auto_wizard_browser_test.rb || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:integration:twitter_chrome:
- stage: browser-integration
- dependencies:
- - browser:build
- tags:
- - browser
- - twitter
- script:
- - export BROWSER=chrome
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - RAILS_ENV=test rake db:create
- - cp contrib/auto_wizard_test.json auto_wizard.json
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - ruby -I test/ test/integration/twitter_browser_test.rb || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:integration:facebook_chrome:
- stage: browser-integration
- dependencies:
- - browser:build
- tags:
- - browser
- - facebook
- script:
- - export BROWSER=chrome
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - RAILS_ENV=test rake db:create
- - cp contrib/auto_wizard_test.json auto_wizard.json
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - ruby -I test/ test/integration/facebook_browser_test.rb || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:integration:otrs_chrome:
- stage: browser-integration
- dependencies:
- - browser:build
- tags:
- - browser
- script:
- - export BROWSER=chrome
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - RAILS_ENV=test rake db:create
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - ruby -I test/ test/integration/otrs_import_browser_test.rb || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
- test:browser:integration:zendesk_chrome:
- stage: browser-integration
- dependencies:
- - browser:build
- tags:
- - browser
- script:
- - export BROWSER=chrome
- - export BROWSER_URL=http://$IP:$BROWSER_PORT
- - RAILS_ENV=test rake db:create
- - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
- - ruby -I test/ test/integration/zendesk_import_browser_test.rb || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
- - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
|