2018-08-27 23:00:42 +08:00
|
|
|
language: node_js
|
|
|
|
|
|
|
|
install:
|
|
|
|
# - git clone git@github.com:browniecab/bigbluebutton-tests.git tests
|
2018-08-28 01:42:21 +08:00
|
|
|
- cd bigbluebutton-html5
|
2018-08-28 01:38:50 +08:00
|
|
|
- docker build -t b2 .
|
|
|
|
- docker=$(docker run -d -p 80:80/tcp -p 443:443/tcp -p 1935:1935 -p 5066:5066 -p 3478:3478 -p 3478:3478/udp b2 -h localhost)
|
|
|
|
- echo $docker
|
2018-08-28 01:42:21 +08:00
|
|
|
- cd tests/puppeteer
|
|
|
|
- npm install
|
2018-08-28 23:01:52 +08:00
|
|
|
- conf=$(docker exec $(docker ps -q) bbb-conf --secret | grep "Secret:")
|
|
|
|
- secret=$(echo $conf | cut -d' ' -f2)
|
|
|
|
- echo $conf
|
|
|
|
|
|
|
|
env:
|
|
|
|
- BBB_SERVER_URL=http://localhost/bigbluebutton/api
|
|
|
|
- BBB_SHARED_SECRET=$secret
|
2018-08-28 01:42:21 +08:00
|
|
|
|
|
|
|
script:
|
2018-08-28 01:38:50 +08:00
|
|
|
- node test-html5-check.js
|
2018-08-27 23:00:42 +08:00
|
|
|
- node test-chat.js
|
|
|
|
- node test-draw.js
|
|
|
|
- node test-status.js
|
|
|
|
- node test-switch-slides.js
|
|
|
|
- node test-upload.js
|
2018-08-28 01:42:21 +08:00
|
|
|
|
|
|
|
after_script:
|
2018-08-28 01:38:50 +08:00
|
|
|
- docker stop $docker
|
2018-08-27 23:00:42 +08:00
|
|
|
# - node tests/puppeteer/test-hotkeys.js
|
2018-08-28 01:38:50 +08:00
|
|
|
# - node tests/puppeteer/test-hotkeys-mic-first.js
|