Skip to content
Snippets Groups Projects
Commit dbf7347d authored by Maxim Khlobystov's avatar Maxim Khlobystov
Browse files

Update the CI setup (linting + disable tests).

parent dbcc684a
No related branches found
No related tags found
No related merge requests found
dist: trusty
language: node_js language: node_js
install: node_js:
# - git clone git@github.com:browniecab/bigbluebutton-tests.git tests - "8"
- cd bigbluebutton-html5
- docker build -t b2 . if: type = pull_request
- 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
- cd tests/puppeteer
- npm install
- conf=$(docker exec $(docker ps -q) bbb-conf --secret | grep "Secret:")
- secret=$(echo $conf | cut -d' ' -f2)
- export BBB_SHARED_SECRET=$secret
env: env:
global: global:
- BBB_SERVER_URL=http://localhost/bigbluebutton/api - BBB_SERVER_URL=http://localhost/bigbluebutton/api
script: script:
- node html5-check.js - bash ./build_script.sh
- npm test
after_script: after_script:
- docker stop $docker - docker stop $docker
......
tests/* tests/*
Gruntfile.js Gruntfile.js
client/compatibility/*
#!/bin/bash
set -ev
files=`git diff --name-only HEAD..$TRAVIS_BRANCH`
if [[ $files = *"bigbluebutton-html5"* ]]; then
cd bigbluebutton-html5
docker build -t b2 -f Dockerfile.test .
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
cd tests/puppeteer
npm install
conf=$(docker exec $(docker ps -q) bbb-conf --secret | grep "Secret:")
secret=$(echo $conf | cut -d' ' -f2)
export BBB_SHARED_SECRET=$secret
cd ../..
curl https://install.meteor.com/ | sh
meteor npm install
cd tests/puppeteer
npm install
cd ../../..
bigbluebutton-html5/node_modules/.bin/eslint --ext .jsx,.js $files
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment