.gitlab-ci.yml 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105
  1. before_script:
  2. - ruby -v
  3. - which ruby
  4. - env
  5. - test -n "$RNAME" && script/build/test_db_config.sh
  6. - test -n "$RNAME" && bundle install --jobs 8
  7. stages:
  8. - pre
  9. - test
  10. - browser-core
  11. - browser-integration
  12. pre:rubocop:
  13. stage: pre
  14. tags:
  15. - core
  16. script:
  17. - bundle exec rubocop
  18. pre:coffeelint:
  19. stage: pre
  20. tags:
  21. - core
  22. script:
  23. - coffeelint app/
  24. pre:bundle-audit:
  25. stage: pre
  26. tags:
  27. - core
  28. script:
  29. - gem install bundler-audit
  30. - bundle-audit update
  31. - bundle-audit
  32. pre:github:
  33. stage: pre
  34. tags:
  35. - deploy
  36. script:
  37. - script/build/sync_repo.sh git@github.com:zammad/zammad.git
  38. test:rspec:mysql:
  39. stage: test
  40. tags:
  41. - core
  42. - mysql
  43. script:
  44. - export RAILS_ENV=test
  45. - rake db:create
  46. - rake db:migrate
  47. - rake db:seed
  48. - rspec
  49. - rake db:drop
  50. test:rspec:postgresql:
  51. stage: test
  52. tags:
  53. - core
  54. - postgresql
  55. script:
  56. - export RAILS_ENV=test
  57. - rake db:create
  58. - rake db:migrate
  59. - rake db:seed
  60. - rspec
  61. - rake db:drop
  62. test:unit:mysql:
  63. stage: test
  64. tags:
  65. - core
  66. - mysql
  67. script:
  68. - export RAILS_ENV=test
  69. - rake db:create
  70. - rake db:migrate
  71. - rake db:seed
  72. - rake test:units
  73. - rake test:controllers
  74. - ruby -I test/ test/integration/object_manager_test.rb
  75. - ruby -I test/ test/integration/package_test.rb
  76. - rake db:drop
  77. test:unit:postgresql:
  78. stage: test
  79. tags:
  80. - core
  81. - postgresql
  82. script:
  83. - export RAILS_ENV=test
  84. - rake db:create
  85. - rake db:migrate
  86. - rake db:seed
  87. - rake test:units
  88. - rake test:controllers
  89. - ruby -I test/ test/integration/object_manager_test.rb
  90. - ruby -I test/ test/integration/package_test.rb
  91. - rake db:drop
  92. test:integration:autowizard:
  93. stage: test
  94. tags:
  95. - core
  96. script:
  97. - export RAILS_ENV=test
  98. - rake db:create
  99. - rake db:migrate
  100. - ruby -I test/ test/integration/auto_wizard_test.rb
  101. - rake db:drop
  102. test:integration:email_helper:
  103. stage: test
  104. tags:
  105. - core
  106. script:
  107. - export RAILS_ENV=test
  108. - rake db:create
  109. - rake db:migrate
  110. - ruby -I test/ test/integration/email_helper_test.rb
  111. - rake db:drop
  112. test:integration:email_deliver:
  113. stage: test
  114. tags:
  115. - core
  116. script:
  117. - export RAILS_ENV=test
  118. - rake db:create
  119. - rake db:migrate
  120. - ruby -I test/ test/integration/email_deliver_test.rb
  121. - rake db:drop
  122. test:integration:email_keep_on_server:
  123. stage: test
  124. tags:
  125. - core
  126. script:
  127. - export RAILS_ENV=test
  128. - rake db:create
  129. - rake db:migrate
  130. - ruby -I test/ test/integration/email_keep_on_server_test.rb
  131. - rake db:drop
  132. test:integration:twitter:
  133. stage: test
  134. tags:
  135. - core-twitter
  136. script:
  137. - export RAILS_ENV=test
  138. - rake db:create
  139. - rake db:migrate
  140. - rake db:seed
  141. - ruby -I test/ test/integration/twitter_test.rb
  142. - rake db:drop
  143. allow_failure: true
  144. test:integration:facebook:
  145. stage: test
  146. tags:
  147. - core-facebook
  148. script:
  149. - export RAILS_ENV=test
  150. - rake db:create
  151. - rake db:migrate
  152. - rake db:seed
  153. - ruby -I test/ test/integration/facebook_test.rb
  154. - rake db:drop
  155. allow_failure: true
  156. test:integration:geo_ip:
  157. stage: test
  158. tags:
  159. - core
  160. script:
  161. - export RAILS_ENV=test
  162. - rake db:create
  163. - rake db:migrate
  164. - ruby -I test/ test/integration/geo_ip_test.rb
  165. - rake db:drop
  166. test:integration:geo_location:
  167. stage: test
  168. tags:
  169. - core
  170. script:
  171. - export RAILS_ENV=test
  172. - rake db:create
  173. - rake db:migrate
  174. - ruby -I test/ test/integration/geo_location_test.rb
  175. - rake db:drop
  176. test:integration:geo_calendar:
  177. stage: test
  178. tags:
  179. - core
  180. script:
  181. - export RAILS_ENV=test
  182. - rake db:create
  183. - rake db:migrate
  184. - ruby -I test/ test/integration/geo_calendar_test.rb
  185. - rake db:drop
  186. test:integration:user_agent:
  187. stage: test
  188. tags:
  189. - core
  190. script:
  191. - export RAILS_ENV=test
  192. - rake db:create
  193. - rake db:migrate
  194. - ruby -I test/ test/integration/user_agent_test.rb
  195. - rake db:drop
  196. test:integration:user_agent_proxy:
  197. stage: test
  198. tags:
  199. - core
  200. script:
  201. - export ZAMMAD_PROXY_TEST=true
  202. - export RAILS_ENV=test
  203. - rake db:create
  204. - rake db:migrate
  205. - ruby -I test/ test/integration/user_agent_test.rb
  206. - rake db:drop
  207. test:integration:user_device:
  208. stage: test
  209. tags:
  210. - core
  211. script:
  212. - export RAILS_ENV=test
  213. - rake db:create
  214. - rake db:migrate
  215. - ruby -I test/ test/integration/user_device_controller_test.rb
  216. - rake db:drop
  217. test:integration:slack:
  218. stage: test
  219. tags:
  220. - core
  221. script:
  222. - export RAILS_ENV=test
  223. - rake db:create
  224. - rake db:migrate
  225. - echo "gem 'slack-api'" >> Gemfile.local
  226. - bundle install --jobs 8
  227. - ruby -I test test/integration/slack_test.rb
  228. - rake db:drop
  229. test:integration:clearbit:
  230. stage: test
  231. tags:
  232. - core
  233. script:
  234. - export RAILS_ENV=test
  235. - rake db:create
  236. - rake db:migrate
  237. - ruby -I test test/integration/clearbit_test.rb
  238. - rake db:drop
  239. test:integration:sipgate:
  240. stage: test
  241. tags:
  242. - core
  243. script:
  244. - export RAILS_ENV=test
  245. - rake db:create
  246. - rake db:migrate
  247. - ruby -I test test/integration/sipgate_controller_test.rb
  248. - rake db:drop
  249. test:integration:telegram:
  250. stage: test
  251. tags:
  252. - core
  253. script:
  254. - export RAILS_ENV=test
  255. - rake db:create
  256. - rake db:migrate
  257. - rake db:seed
  258. - ruby -I test test/integration/telegram_controller_test.rb
  259. - rake db:drop
  260. test:integration:idoit:
  261. stage: test
  262. tags:
  263. - core
  264. script:
  265. - export RAILS_ENV=test
  266. - rake db:create
  267. - rake db:migrate
  268. - rake db:seed
  269. - ruby -I test test/integration/idoit_controller_test.rb
  270. - rake db:drop
  271. test:integration:es_mysql:
  272. stage: test
  273. tags:
  274. - core
  275. - mysql
  276. script:
  277. - export RAILS_ENV=test
  278. - export ES_INDEX_RAND=true
  279. - export ES_URL="http://localhost:9200"
  280. - rake db:create
  281. - rake db:migrate
  282. - ruby -I test/ test/integration/elasticsearch_test.rb
  283. - ruby -I test/ test/controllers/search_controller_test.rb
  284. - ruby -I test/ test/integration/report_test.rb
  285. - ruby -I test/ test/controllers/form_controller_test.rb
  286. - ruby -I test/ test/controllers/user_organization_controller_test.rb
  287. - rake db:drop
  288. test:integration:es_postgresql:
  289. stage: test
  290. tags:
  291. - core
  292. - postgresql
  293. script:
  294. - export RAILS_ENV=test
  295. - export ES_INDEX_RAND=true
  296. - export ES_URL="http://localhost:9200"
  297. - rake db:create
  298. - rake db:migrate
  299. - ruby -I test/ test/integration/elasticsearch_test.rb
  300. - ruby -I test/ test/controllers/search_controller_test.rb
  301. - ruby -I test/ test/integration/report_test.rb
  302. - ruby -I test/ test/controllers/form_controller_test.rb
  303. - ruby -I test/ test/controllers/user_organization_controller_test.rb
  304. - rake db:drop
  305. test:integration:zendesk_mysql:
  306. stage: test
  307. tags:
  308. - core
  309. - mysql
  310. script:
  311. - export RAILS_ENV=test
  312. - rake db:create
  313. - rake db:migrate
  314. - ruby -I test/ test/integration/zendesk_import_test.rb
  315. - rake db:drop
  316. test:integration:zendesk_postgresql:
  317. stage: test
  318. tags:
  319. - core
  320. - postgresql
  321. script:
  322. - export RAILS_ENV=test
  323. - rake db:create
  324. - rake db:migrate
  325. - ruby -I test/ test/integration/zendesk_import_test.rb
  326. - rake db:drop
  327. test:integration:otrs_5_mysql:
  328. stage: test
  329. tags:
  330. - core
  331. - mysql
  332. script:
  333. - export RAILS_ENV=test
  334. - export IMPORT_OTRS_ENDPOINT="http://vz1109.demo.znuny.com/otrs/public.pl?Action=ZammadMigrator"
  335. - rake db:create
  336. - rake db:migrate
  337. - ruby -I test/ test/integration/otrs_import_test.rb
  338. - rake db:drop
  339. test:integration:otrs_5_postgresql:
  340. stage: test
  341. tags:
  342. - core
  343. - postgresql
  344. script:
  345. - export RAILS_ENV=test
  346. - export IMPORT_OTRS_ENDPOINT="http://vz1109.demo.znuny.com/otrs/public.pl?Action=ZammadMigrator"
  347. - rake db:create
  348. - rake db:migrate
  349. - ruby -I test/ test/integration/otrs_import_test.rb
  350. - rake db:drop
  351. test:integration:otrs_4:
  352. stage: test
  353. tags:
  354. - core
  355. script:
  356. - export RAILS_ENV=test
  357. - export IMPORT_OTRS_ENDPOINT="http://vz383.demo.znuny.com/otrs/public.pl?Action=ZammadMigrator"
  358. - rake db:create
  359. - rake db:migrate
  360. - ruby -I test/ test/integration/otrs_import_test.rb
  361. - rake db:drop
  362. test:integration:otrs_33:
  363. stage: test
  364. tags:
  365. - core
  366. script:
  367. - export RAILS_ENV=test
  368. - export IMPORT_OTRS_ENDPOINT="http://vz305.demo.znuny.com/otrs/public.pl?Action=ZammadMigrator"
  369. - rake db:create
  370. - rake db:migrate
  371. - ruby -I test/ test/integration/otrs_import_test.rb
  372. - rake db:drop
  373. test:integration:otrs_32:
  374. stage: test
  375. tags:
  376. - core
  377. script:
  378. - export RAILS_ENV=test
  379. - export IMPORT_OTRS_ENDPOINT="http://vz382.demo.znuny.com/otrs/public.pl?Action=ZammadMigrator"
  380. - rake db:create
  381. - rake db:migrate
  382. - ruby -I test/ test/integration/otrs_import_test.rb
  383. - rake db:drop
  384. test:integration:otrs_31:
  385. stage: test
  386. tags:
  387. - core
  388. script:
  389. - export RAILS_ENV=test
  390. - export IMPORT_OTRS_ENDPOINT="http://vz381.demo.znuny.com/otrs/public.pl?Action=ZammadMigrator"
  391. - rake db:create
  392. - rake db:migrate
  393. - ruby -I test/ test/integration/otrs_import_test.rb
  394. - rake db:drop
  395. browser:build:
  396. stage: test
  397. tags:
  398. - core
  399. script:
  400. - export RAILS_ENV=production
  401. - rake db:create
  402. - rake db:migrate
  403. - rake assets:precompile
  404. - rake db:drop
  405. artifacts:
  406. expire_in: 1 week
  407. paths:
  408. - public/assets/.sprockets-manifest*
  409. - public/assets/application-*
  410. - public/assets/print-*
  411. test:browser:integration:api_client_ruby:
  412. stage: browser-core
  413. dependencies:
  414. - browser:build
  415. tags:
  416. - browser
  417. script:
  418. - RAILS_ENV=test rake db:create
  419. - cp contrib/auto_wizard_test.json auto_wizard.json
  420. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  421. - git clone git@github.com:zammad/zammad-api-client-ruby.git || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  422. - cd zammad-api-client-ruby
  423. - bundle install --jobs 8
  424. - export TEST_URL=http://$IP:$BROWSER_PORT
  425. - rspec || (cd .. && script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1)
  426. - cd .. && script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  427. test:browser:integration:api_client_php:
  428. stage: browser-core
  429. dependencies:
  430. - browser:build
  431. tags:
  432. - browser
  433. script:
  434. - RAILS_ENV=test rake db:create
  435. - cp contrib/auto_wizard_test.json auto_wizard.json
  436. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  437. - git clone git@github.com:zammad/zammad-api-client-php || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  438. - wget http://$IP:$BROWSER_PORT/api/v1/getting_started/auto_wizard
  439. - cd zammad-api-client-php
  440. - composer install
  441. - export ZAMMAD_PHP_API_CLIENT_UNIT_TESTS_URL=http://$IP:$BROWSER_PORT
  442. - export ZAMMAD_PHP_API_CLIENT_UNIT_TESTS_USERNAME=master@example.com
  443. - export ZAMMAD_PHP_API_CLIENT_UNIT_TESTS_PASSWORD=test
  444. - vendor/bin/phpunit || (cd .. && script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1)
  445. - cd .. && script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  446. test:browser:twitter_ff:
  447. stage: browser-integration
  448. dependencies:
  449. - browser:build
  450. tags:
  451. - browser
  452. - twitter
  453. script:
  454. - export BROWSER=firefox
  455. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  456. - 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"
  457. - RAILS_ENV=test rake db:create
  458. - cp contrib/auto_wizard_test.json auto_wizard.json
  459. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  460. - ruby -I test/ test/integration/twitter_browser_test.rb || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  461. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  462. test:browser:facebook_ff:
  463. stage: browser-integration
  464. dependencies:
  465. - browser:build
  466. tags:
  467. - browser
  468. - facebook
  469. script:
  470. - export BROWSER=firefox
  471. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  472. - 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"
  473. - RAILS_ENV=test rake db:create
  474. - cp contrib/auto_wizard_test.json auto_wizard.json
  475. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  476. - ruby -I test/ test/integration/facebook_browser_test.rb || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  477. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  478. test:browser:autowizard_ff:
  479. stage: browser-core
  480. dependencies:
  481. - browser:build
  482. tags:
  483. - browser
  484. script:
  485. - export BROWSER=firefox
  486. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  487. - 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"
  488. - RAILS_ENV=test rake db:create
  489. - cp contrib/auto_wizard_example.json auto_wizard.json
  490. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  491. - ruby -I test/ test/integration/auto_wizard_browser_test.rb || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  492. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  493. test:browser:core:ff_1_mysql:
  494. stage: browser-core
  495. dependencies:
  496. - browser:build
  497. tags:
  498. - browser
  499. - mysql
  500. script:
  501. - export BROWSER=firefox
  502. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  503. - 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"
  504. - unset MAILBOX_AUTO1
  505. - unset MAILBOX_AUTO2
  506. - unset MAILBOX_MANUAL1
  507. - unset MAILBOX_MANUAL2
  508. - script/build/test_slice_tests.sh 1
  509. - RAILS_ENV=test rake db:create
  510. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  511. - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  512. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  513. test:browser:core:ff_2_mysql:
  514. stage: browser-core
  515. dependencies:
  516. - browser:build
  517. tags:
  518. - browser
  519. - mysql
  520. script:
  521. - export BROWSER=firefox
  522. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  523. - 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"
  524. - unset MAILBOX_AUTO1
  525. - unset MAILBOX_AUTO2
  526. - unset MAILBOX_MANUAL1
  527. - unset MAILBOX_MANUAL2
  528. - script/build/test_slice_tests.sh 2
  529. - RAILS_ENV=test rake db:create
  530. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  531. - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  532. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  533. test:browser:core:ff_3_mysql:
  534. stage: browser-core
  535. dependencies:
  536. - browser:build
  537. tags:
  538. - browser
  539. - mysql
  540. script:
  541. - export BROWSER=firefox
  542. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  543. - 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"
  544. - script/build/test_slice_tests.sh 3
  545. - RAILS_ENV=test rake db:create
  546. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  547. - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  548. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  549. test:browser:core:ff_4_mysql:
  550. stage: browser-core
  551. dependencies:
  552. - browser:build
  553. tags:
  554. - browser
  555. - mysql
  556. script:
  557. - export BROWSER=firefox
  558. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  559. - 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"
  560. - unset MAILBOX_AUTO1
  561. - unset MAILBOX_AUTO2
  562. - unset MAILBOX_MANUAL1
  563. - unset MAILBOX_MANUAL2
  564. - script/build/test_slice_tests.sh 4
  565. - RAILS_ENV=test rake db:create
  566. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  567. - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  568. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  569. test:browser:core:ff_5_mysql:
  570. stage: browser-core
  571. dependencies:
  572. - browser:build
  573. tags:
  574. - browser
  575. - mysql
  576. script:
  577. - export BROWSER=firefox
  578. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  579. - 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"
  580. - unset MAILBOX_AUTO1
  581. - unset MAILBOX_AUTO2
  582. - unset MAILBOX_MANUAL1
  583. - unset MAILBOX_MANUAL2
  584. - script/build/test_slice_tests.sh 5
  585. - RAILS_ENV=test rake db:create
  586. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  587. - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  588. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  589. test:browser:core:ff_6_mysql:
  590. stage: browser-core
  591. dependencies:
  592. - browser:build
  593. tags:
  594. - browser
  595. - mysql
  596. script:
  597. - export BROWSER=firefox
  598. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  599. - 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"
  600. - unset MAILBOX_AUTO1
  601. - unset MAILBOX_AUTO2
  602. - unset MAILBOX_MANUAL1
  603. - unset MAILBOX_MANUAL2
  604. - script/build/test_slice_tests.sh 6
  605. - RAILS_ENV=test rake db:create
  606. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  607. - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  608. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  609. test:browser:core:ff_1_postgresql:
  610. stage: browser-core
  611. dependencies:
  612. - browser:build
  613. tags:
  614. - browser
  615. - postgresql
  616. script:
  617. - export BROWSER=firefox
  618. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  619. - 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"
  620. - unset MAILBOX_AUTO1
  621. - unset MAILBOX_AUTO2
  622. - unset MAILBOX_MANUAL1
  623. - unset MAILBOX_MANUAL2
  624. - script/build/test_slice_tests.sh 1
  625. - RAILS_ENV=test rake db:create
  626. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  627. - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  628. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  629. test:browser:core:ff_2_postgresql:
  630. stage: browser-core
  631. dependencies:
  632. - browser:build
  633. tags:
  634. - browser
  635. - postgresql
  636. script:
  637. - export BROWSER=firefox
  638. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  639. - 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"
  640. - unset MAILBOX_AUTO1
  641. - unset MAILBOX_AUTO2
  642. - unset MAILBOX_MANUAL1
  643. - unset MAILBOX_MANUAL2
  644. - script/build/test_slice_tests.sh 2
  645. - RAILS_ENV=test rake db:create
  646. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  647. - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  648. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  649. test:browser:core:ff_3_postgresql:
  650. stage: browser-core
  651. dependencies:
  652. - browser:build
  653. tags:
  654. - browser
  655. - postgresql
  656. script:
  657. - export BROWSER=firefox
  658. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  659. - 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"
  660. - script/build/test_slice_tests.sh 3
  661. - RAILS_ENV=test rake db:create
  662. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  663. - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  664. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  665. test:browser:core:ff_4_postgresql:
  666. stage: browser-core
  667. dependencies:
  668. - browser:build
  669. tags:
  670. - browser
  671. - postgresql
  672. script:
  673. - export BROWSER=firefox
  674. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  675. - 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"
  676. - unset MAILBOX_AUTO1
  677. - unset MAILBOX_AUTO2
  678. - unset MAILBOX_MANUAL1
  679. - unset MAILBOX_MANUAL2
  680. - script/build/test_slice_tests.sh 4
  681. - RAILS_ENV=test rake db:create
  682. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  683. - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  684. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  685. test:browser:core:ff_5_postgresql:
  686. stage: browser-core
  687. dependencies:
  688. - browser:build
  689. tags:
  690. - browser
  691. - postgresql
  692. script:
  693. - export BROWSER=firefox
  694. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  695. - 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"
  696. - unset MAILBOX_AUTO1
  697. - unset MAILBOX_AUTO2
  698. - unset MAILBOX_MANUAL1
  699. - unset MAILBOX_MANUAL2
  700. - script/build/test_slice_tests.sh 5
  701. - RAILS_ENV=test rake db:create
  702. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  703. - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  704. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  705. test:browser:core:ff_6_postgresql:
  706. stage: browser-core
  707. dependencies:
  708. - browser:build
  709. tags:
  710. - browser
  711. - postgresql
  712. script:
  713. - export BROWSER=firefox
  714. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  715. - 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"
  716. - unset MAILBOX_AUTO1
  717. - unset MAILBOX_AUTO2
  718. - unset MAILBOX_MANUAL1
  719. - unset MAILBOX_MANUAL2
  720. - script/build/test_slice_tests.sh 6
  721. - RAILS_ENV=test rake db:create
  722. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  723. - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  724. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  725. test:browser:core:chrome_1_mysql:
  726. stage: browser-core
  727. dependencies:
  728. - browser:build
  729. tags:
  730. - browser
  731. - mysql
  732. script:
  733. - export BROWSER=chrome
  734. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  735. - 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"
  736. - unset MAILBOX_AUTO1
  737. - unset MAILBOX_AUTO2
  738. - unset MAILBOX_MANUAL1
  739. - unset MAILBOX_MANUAL2
  740. - script/build/test_slice_tests.sh 1
  741. - RAILS_ENV=test rake db:create
  742. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  743. - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  744. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  745. test:browser:core:chrome_2_mysql:
  746. stage: browser-core
  747. dependencies:
  748. - browser:build
  749. tags:
  750. - browser
  751. - mysql
  752. script:
  753. - export BROWSER=chrome
  754. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  755. - 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"
  756. - unset MAILBOX_AUTO1
  757. - unset MAILBOX_AUTO2
  758. - unset MAILBOX_MANUAL1
  759. - unset MAILBOX_MANUAL2
  760. - script/build/test_slice_tests.sh 2
  761. - RAILS_ENV=test rake db:create
  762. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  763. - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  764. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  765. test:browser:core:chrome_3_mysql:
  766. stage: browser-core
  767. dependencies:
  768. - browser:build
  769. tags:
  770. - browser
  771. - mysql
  772. script:
  773. - export BROWSER=chrome
  774. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  775. - 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"
  776. - unset MAILBOX_AUTO1
  777. - unset MAILBOX_AUTO2
  778. - unset MAILBOX_MANUAL1
  779. - unset MAILBOX_MANUAL2
  780. - script/build/test_slice_tests.sh 3
  781. - RAILS_ENV=test rake db:create
  782. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  783. - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  784. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  785. test:browser:core:chrome_4_mysql:
  786. stage: browser-core
  787. dependencies:
  788. - browser:build
  789. tags:
  790. - browser
  791. - mysql
  792. script:
  793. - export BROWSER=chrome
  794. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  795. - 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"
  796. - unset MAILBOX_AUTO1
  797. - unset MAILBOX_AUTO2
  798. - unset MAILBOX_MANUAL1
  799. - unset MAILBOX_MANUAL2
  800. - script/build/test_slice_tests.sh 4
  801. - RAILS_ENV=test rake db:create
  802. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  803. - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  804. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  805. test:browser:core:chrome_5_mysql:
  806. stage: browser-core
  807. dependencies:
  808. - browser:build
  809. tags:
  810. - browser
  811. - mysql
  812. script:
  813. - export BROWSER=chrome
  814. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  815. - 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"
  816. - unset MAILBOX_AUTO1
  817. - unset MAILBOX_AUTO2
  818. - unset MAILBOX_MANUAL1
  819. - unset MAILBOX_MANUAL2
  820. - script/build/test_slice_tests.sh 5
  821. - RAILS_ENV=test rake db:create
  822. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  823. - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  824. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  825. test:browser:core:chrome_6_mysql:
  826. stage: browser-core
  827. dependencies:
  828. - browser:build
  829. tags:
  830. - browser
  831. - mysql
  832. script:
  833. - export BROWSER=chrome
  834. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  835. - 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"
  836. - unset MAILBOX_AUTO1
  837. - unset MAILBOX_AUTO2
  838. - unset MAILBOX_MANUAL1
  839. - unset MAILBOX_MANUAL2
  840. - script/build/test_slice_tests.sh 6
  841. - RAILS_ENV=test rake db:create
  842. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  843. - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  844. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  845. test:browser:core:chrome_1_postgresql:
  846. stage: browser-core
  847. dependencies:
  848. - browser:build
  849. tags:
  850. - browser
  851. - postgresql
  852. script:
  853. - export BROWSER=chrome
  854. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  855. - 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"
  856. - unset MAILBOX_AUTO1
  857. - unset MAILBOX_AUTO2
  858. - unset MAILBOX_MANUAL1
  859. - unset MAILBOX_MANUAL2
  860. - script/build/test_slice_tests.sh 1
  861. - RAILS_ENV=test rake db:create
  862. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  863. - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  864. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  865. test:browser:core:chrome_2_postgresql:
  866. stage: browser-core
  867. dependencies:
  868. - browser:build
  869. tags:
  870. - browser
  871. - postgresql
  872. script:
  873. - export BROWSER=chrome
  874. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  875. - 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"
  876. - unset MAILBOX_AUTO1
  877. - unset MAILBOX_AUTO2
  878. - unset MAILBOX_MANUAL1
  879. - unset MAILBOX_MANUAL2
  880. - script/build/test_slice_tests.sh 2
  881. - RAILS_ENV=test rake db:create
  882. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  883. - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  884. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  885. test:browser:core:chrome_3_postgresql:
  886. stage: browser-core
  887. dependencies:
  888. - browser:build
  889. tags:
  890. - browser
  891. - postgresql
  892. script:
  893. - export BROWSER=chrome
  894. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  895. - 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"
  896. - unset MAILBOX_AUTO1
  897. - unset MAILBOX_AUTO2
  898. - unset MAILBOX_MANUAL1
  899. - unset MAILBOX_MANUAL2
  900. - script/build/test_slice_tests.sh 3
  901. - RAILS_ENV=test rake db:create
  902. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  903. - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  904. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  905. test:browser:core:chrome_4_postgresql:
  906. stage: browser-core
  907. dependencies:
  908. - browser:build
  909. tags:
  910. - browser
  911. - postgresql
  912. script:
  913. - export BROWSER=chrome
  914. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  915. - 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"
  916. - unset MAILBOX_AUTO1
  917. - unset MAILBOX_AUTO2
  918. - unset MAILBOX_MANUAL1
  919. - unset MAILBOX_MANUAL2
  920. - script/build/test_slice_tests.sh 4
  921. - RAILS_ENV=test rake db:create
  922. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  923. - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  924. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  925. test:browser:core:chrome_5_postgresql:
  926. stage: browser-core
  927. dependencies:
  928. - browser:build
  929. tags:
  930. - browser
  931. - postgresql
  932. script:
  933. - export BROWSER=chrome
  934. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  935. - 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"
  936. - unset MAILBOX_AUTO1
  937. - unset MAILBOX_AUTO2
  938. - unset MAILBOX_MANUAL1
  939. - unset MAILBOX_MANUAL2
  940. - script/build/test_slice_tests.sh 5
  941. - RAILS_ENV=test rake db:create
  942. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  943. - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  944. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  945. test:browser:core:chrome_6_postgresql:
  946. stage: browser-core
  947. dependencies:
  948. - browser:build
  949. tags:
  950. - browser
  951. - postgresql
  952. script:
  953. - export BROWSER=chrome
  954. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  955. - 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"
  956. - unset MAILBOX_AUTO1
  957. - unset MAILBOX_AUTO2
  958. - unset MAILBOX_MANUAL1
  959. - unset MAILBOX_MANUAL2
  960. - script/build/test_slice_tests.sh 6
  961. - RAILS_ENV=test rake db:create
  962. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  963. - rake test:browser || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  964. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  965. test:browser:autowizard_chrome:
  966. stage: browser-core
  967. dependencies:
  968. - browser:build
  969. tags:
  970. - browser
  971. script:
  972. - export BROWSER=chrome
  973. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  974. - RAILS_ENV=test rake db:create
  975. - cp contrib/auto_wizard_example.json auto_wizard.json
  976. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  977. - ruby -I test/ test/integration/auto_wizard_browser_test.rb || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  978. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  979. test:browser:integration:twitter_chrome:
  980. stage: browser-integration
  981. dependencies:
  982. - browser:build
  983. tags:
  984. - browser
  985. - twitter
  986. script:
  987. - export BROWSER=chrome
  988. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  989. - RAILS_ENV=test rake db:create
  990. - cp contrib/auto_wizard_test.json auto_wizard.json
  991. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  992. - ruby -I test/ test/integration/twitter_browser_test.rb || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  993. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  994. test:browser:integration:facebook_chrome:
  995. stage: browser-integration
  996. dependencies:
  997. - browser:build
  998. tags:
  999. - browser
  1000. - facebook
  1001. script:
  1002. - export BROWSER=chrome
  1003. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  1004. - RAILS_ENV=test rake db:create
  1005. - cp contrib/auto_wizard_test.json auto_wizard.json
  1006. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  1007. - ruby -I test/ test/integration/facebook_browser_test.rb || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  1008. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  1009. test:browser:integration:otrs_chrome:
  1010. stage: browser-integration
  1011. dependencies:
  1012. - browser:build
  1013. tags:
  1014. - browser
  1015. script:
  1016. - export BROWSER=chrome
  1017. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  1018. - RAILS_ENV=test rake db:create
  1019. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  1020. - ruby -I test/ test/integration/otrs_import_browser_test.rb || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  1021. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1
  1022. test:browser:integration:zendesk_chrome:
  1023. stage: browser-integration
  1024. dependencies:
  1025. - browser:build
  1026. tags:
  1027. - browser
  1028. script:
  1029. - export BROWSER=chrome
  1030. - export BROWSER_URL=http://$IP:$BROWSER_PORT
  1031. - RAILS_ENV=test rake db:create
  1032. - script/build/test_startup.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1
  1033. - ruby -I test/ test/integration/zendesk_import_browser_test.rb || script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 1 1
  1034. - script/build/test_shutdown.sh $RAILS_ENV $BROWSER_PORT $WS_PORT 0 1