Repository navigation
Expand file tree
/
Copy pathinit
More file actions
executable file
·62 lines (41 loc) · 1.3 KB
/
Copy pathinit
File metadata and controls
executable file
·62 lines (41 loc) · 1.3 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
set -o errexit
HOST=$(ec2metadata | grep public-ipv4 | FS=':' awk '{print $2}')
export HOME=/root/
export REPOSITORY_PATH='/opt/koding'
export CI="true"
export WERCKER="true"
export CONFIG_DEBUGMODE="true"
ulimit -n 10240
cd $REPOSITORY_PATH
git config user.email 'sysops@koding.com'
git config user.name 'Koding Bot'
scripts/wercker/install-node-modules koding
scripts/install-npm.sh -u
./configure --host $HOST:8090 --disable-segment
./run install
export TEST_EXTRAS="--no-start-selenium --url http://$HOST:8090"
make -C client/test build
./run services
sleep 60 # let dockers boot up
./run migrate up
./run resetdb --yes
./run importusers
./run exec supervisord -c $REPOSITORY_PATH/supervisord.conf
export TEST_VENDOR=$REPOSITORY_PATH/client/test/vendor
export DISPLAY=:0
Xvfb $DISPLAY -shmem -screen 0 1440x900x16 &
java -jar $TEST_VENDOR/selenium-server-standalone.jar \
-host 0.0.0.0 \
-port 42420 \
&> $REPOSITORY_PATH/.logs/selenium-host.log &
export DISPLAY=:1
Xvfb $DISPLAY -shmem -screen 1 1440x900x16 &
java -jar $TEST_VENDOR/selenium-server-standalone.jar \
-host 0.0.0.0 \
-port 42421 \
&> $REPOSITORY_PATH/.logs/selenium-participant.log &
sleep 10
x11vnc -passwd secret -display :0 -N -forever &
x11vnc -passwd secret -display :1 -N -forever &
exit 0