forked from SenecaCDOT-BigBlueButton/bigbluebutton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_script.sh
executable file
·39 lines (34 loc) · 1.06 KB
/
build_script.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
files=`git diff --name-only HEAD..$TRAVIS_BRANCH`
if [[ $files = *"bigbluebutton-html5"* ]]; then
cd bigbluebutton-html5
npm install
cd ..
if [ $1 = linter ]
then
html5_files=""
list=$(echo $files | tr " " "\n")
for file in $list
do
if [[ $file = bigbluebutton-html5* ]] && [[ -e $file ]]
then
html5_files+=" $file"
fi
done
bigbluebutton-html5/node_modules/.bin/eslint --ext .jsx,.js $html5_files
elif [ $1 = acceptance_tests ]
then
echo "START"
df -h
git clone --single-branch -b bbb-22-1 https://github.com/MaximKhlobystov/docker.git
cp -r docker/{mod,setup.sh,supervisord.conf} .
cp -r docker/Dockerfile Dockerfile.test
docker build -t bbb -f Dockerfile.test .
docker run --privileged -d -p 80:80/tcp -p 443:443/tcp -p 1935:1935 -p 5066:5066 -p 3478:3478 -p 3478:3478/udp bbb -h localhost
container=$(docker ps -q)
echo $container
docker exec $container service supervisor status
docker exec $container supervisorctl status bbb-html5
echo "FINISH"
fi
fi