-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtestsl.sh
More file actions
executable file
·40 lines (26 loc) · 814 Bytes
/
testsl.sh
File metadata and controls
executable file
·40 lines (26 loc) · 814 Bytes
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
#!/bin/sh
if [ "${TRAVIS_JOB_NUMBER}" != "" ]
then
HOSTNAME=`hostname -f`
BROWSERS="internet explorer,Windows 7,11;firefox,Linux,27;chrome,Linux,32;safari,OS X 10.9,7"
IFS=';'
for b in $BROWSERS
do
killall node
(cd examples/intro && node app.js)&
sleep 1
IFS=','
set $b
BROWSER=$1
PLATFORM=$2
VERSION=$3
if ! node_modules/hopjs-remote/bin/hopjs-selenium --url http://localhost:3000/ --browser "$BROWSER" --platform "$PLATFORM" --version "$VERSION" --remote "http://${SAUCE_USERNAME}:${SAUCE_ACCESS_KEY}@localhost:16455/wd/hub" --name "Build: ${TRAVIS_BUILD_NUMBER}" --tunnelid ${TRAVIS_JOB_NUMBER} --build ${TRAVIS_BUILD_NUMBER} --public public
then
killall node
exit -1
fi
IFS=';'
done
killall node
fi
exit 0