forked from koding/koding
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit
More file actions
executable file
·69 lines (48 loc) · 1.65 KB
/
Copy pathinit
File metadata and controls
executable file
·69 lines (48 loc) · 1.65 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
63
64
65
66
67
68
69
#!/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'
export KONFIG_SNEAKERS3_AWSSECRETACCESSKEY="" \
KONFIG_SNEAKERS3_AWSACCESSKEYID="" \
KONFIG_SNEAKERS3_SNEAKERS3PATH="" \
KONFIG_SNEAKERS3_SNEAKERMASTERKEY="" \
KONFIG_SNEAKERS3_AWSREGION=""
npm install --unsafe-perm
./configure --config dev --host $HOST:8090 --disable-segment
go/build.sh
make -C client dist
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 \
-Dwebdriver.gecko.driver=$TEST_VENDOR/geckodriver/linux64/geckodriver \
&> $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 \
-Dwebdriver.gecko.driver=$TEST_VENDOR/geckodriver/linux64/geckodriver \
&> $REPOSITORY_PATH/.logs/selenium-participant.log &
sleep 10
x11vnc -passwd secret -display :0 -N -forever &
x11vnc -passwd secret -display :1 -N -forever &
exit 0