.gitlab-ci.yml 33 KB

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