Added new browser tests.
This commit is contained in:
parent
31e195807e
commit
7a08c923f6
3 changed files with 34 additions and 7 deletions
|
@ -156,6 +156,26 @@ job_integration_autowizard:
|
|||
- cp contrib/auto_wizard_example.json auto_wizard.json
|
||||
- script/bootstrap.sh
|
||||
- rake assets:precompile
|
||||
- script/build/test_startup.sh $RAILS_ENV 3011
|
||||
- ruby -I test/ test/integration/auto_wizard_test.rb || script/build/test_shutdown.sh $RAILS_ENV 3011 && exit 1
|
||||
- script/build/test_shutdown.sh $RAILS_ENV 3011
|
||||
- script/build/test_startup.sh $RAILS_ENV 3011 3012
|
||||
- ruby -I test/ test/integration/auto_wizard_test.rb || script/build/test_shutdown.sh $RAILS_ENV 3011 3012 1
|
||||
- script/build/test_shutdown.sh $RAILS_ENV 3011 3012
|
||||
|
||||
job_integration_browser_ff:
|
||||
stage: browser
|
||||
script:
|
||||
- export RAILS_ENV=production
|
||||
- export Z_LOCALES=en-us:de-de
|
||||
- export IP=$(ip -f inet -o addr show eth0|cut -d\ -f 7 | cut -d/ -f 1)
|
||||
- export BROWSER_URL=http://$IP:3021
|
||||
- export REMOTE_URL=http://192.168.122.175:4445/wd/hub
|
||||
- export BROWSER=firefox
|
||||
- export RAILS_SERVE_STATIC_FILES=true
|
||||
- script/build/test_db_config.sh production ci_zammad_browser_ff
|
||||
- script/build/test_db_config.sh test ci_zammad_browser_ff_test
|
||||
- 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 3021 3022
|
||||
- rake test:browser || script/build/test_shutdown.sh $RAILS_ENV 3021 3022 1
|
||||
- script/build/test_shutdown.sh $RAILS_ENV 3021 3022
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
#!/bin/bash
|
||||
RAILS_ENV=$1
|
||||
PORT=$2
|
||||
APP_PORT=$2
|
||||
WS_PORT=$3
|
||||
EXIT=$4 || 0
|
||||
|
||||
script/scheduler.rb stop
|
||||
script/websocket-server.rb stop
|
||||
kill $(cat tmp/pids/puma.pid)
|
||||
|
||||
exit $EXIT
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
#!/bin/bash
|
||||
RAILS_ENV=$1
|
||||
PORT=$2
|
||||
APP_PORT=$2
|
||||
WS_PORT=$3
|
||||
|
||||
pumactl start --pidfile tmp/pids/puma.pid -d -p $PORT -e $RAILS_ENV
|
||||
script/websocket-server.rb start -d
|
||||
rails r "Setting.set('websocket_port', '#{WS_PORT}')"
|
||||
|
||||
pumactl start --pidfile tmp/pids/puma.pid -d -p $APP_PORT -e $RAILS_ENV
|
||||
script/websocket-server.rb start -d -p $WS_PORT
|
||||
script/scheduler.rb start
|
||||
|
|
Loading…
Reference in a new issue