Skip to content

Commit 2783761

Browse files
committed
try make gitlab upload vid
1 parent 7bc5270 commit 2783761

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.gitlab-ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,26 @@ test:
3939
- redis:alpine
4040
- postgres:alpine
4141
- selenium/standalone-chrome
42+
- davidsiaw/vrec
4243
variables:
4344
DATABASE_URL: postgres://postgres:postgres@postgres
4445
REDIS_URL: redis://redis:6379/0
4546
CHROME_HOSTNAME: selenium-standalone-chrome
47+
SCREEN_WIDTH: 1280
48+
SCREEN_HEIGHT: 1024
49+
HOST: 'selenium-standalone-chrome:5900'
50+
MP4LOC: '/builds/astrobunny/rails-zen/out.mp4'
51+
GIVEUID: "1000"
52+
GIVEGID: "1000"
4653
script:
4754
- bundle exec rails db:create
4855
- bundle exec rails db:migrate
4956
- bundle exec rails db:test:prepare
5057
- cat /etc/hosts
5158
- echo "$(cat /etc/hosts | grep -Eo "^([0-9\.]+)\s+runner-[0-9a-zA-Z-]{7,8}-+project-[0-9a-zA-Z]+-concurrent-[0-9]+" | grep -Eo "^([0-9\.]+)")" > ip_addr
59+
- curl selenium-standalone-chrome:9494/start
5260
- TEST_HOST="$(cat ip_addr)" bundle exec rspec
61+
- curl selenium-standalone-chrome:9494/stop
62+
artifacts:
63+
paths:
64+
- out.mp4

0 commit comments

Comments
 (0)