| author | ymh <ymh.work@gmail.com> |
| Sat, 15 Mar 2014 10:02:34 +0100 | |
| changeset 616 | 03dc7baf73af |
| parent 614 | 61408993f361 |
| permissions | -rwxr-xr-x |
|
575
8ce80860c3fe
Add the skeleton of the future comt test-suite
Simon Descarpentries <sid@sopinspace.com>
parents:
diff
changeset
|
1 |
#!/bin/bash |
|
8ce80860c3fe
Add the skeleton of the future comt test-suite
Simon Descarpentries <sid@sopinspace.com>
parents:
diff
changeset
|
2 |
|
|
613
a0b695aace0a
File field of Upload from file is now mandatory.
Simon Descarpentries <sid@sopinspace.com>
parents:
575
diff
changeset
|
3 |
export CHROME_BIN=`which chromium` |
| 614 | 4 |
|
|
613
a0b695aace0a
File field of Upload from file is now mandatory.
Simon Descarpentries <sid@sopinspace.com>
parents:
575
diff
changeset
|
5 |
if [ -z "$CHROME_BIN" ]; then |
|
a0b695aace0a
File field of Upload from file is now mandatory.
Simon Descarpentries <sid@sopinspace.com>
parents:
575
diff
changeset
|
6 |
export CHROME_BIN=`which chrome` |
|
a0b695aace0a
File field of Upload from file is now mandatory.
Simon Descarpentries <sid@sopinspace.com>
parents:
575
diff
changeset
|
7 |
fi |
|
a0b695aace0a
File field of Upload from file is now mandatory.
Simon Descarpentries <sid@sopinspace.com>
parents:
575
diff
changeset
|
8 |
if [[ -z "$CHROME_BIN" && $OSTYPE =~ ^darwin ]]; then |
|
a0b695aace0a
File field of Upload from file is now mandatory.
Simon Descarpentries <sid@sopinspace.com>
parents:
575
diff
changeset
|
9 |
CHROME_BIN_BASE=`mdfind "kMDItemCFBundleIdentifier == 'com.google.Chrome'"` |
|
a0b695aace0a
File field of Upload from file is now mandatory.
Simon Descarpentries <sid@sopinspace.com>
parents:
575
diff
changeset
|
10 |
export CHROME_BIN="$CHROME_BIN_BASE/Contents/MacOS/Google Chrome" |
|
a0b695aace0a
File field of Upload from file is now mandatory.
Simon Descarpentries <sid@sopinspace.com>
parents:
575
diff
changeset
|
11 |
fi |
|
a0b695aace0a
File field of Upload from file is now mandatory.
Simon Descarpentries <sid@sopinspace.com>
parents:
575
diff
changeset
|
12 |
export PHANTOMJS_BIN=`which phantomjs` |
|
575
8ce80860c3fe
Add the skeleton of the future comt test-suite
Simon Descarpentries <sid@sopinspace.com>
parents:
diff
changeset
|
13 |
|
|
613
a0b695aace0a
File field of Upload from file is now mandatory.
Simon Descarpentries <sid@sopinspace.com>
parents:
575
diff
changeset
|
14 |
export FIREFOX_BIN=`which firefox` |
|
a0b695aace0a
File field of Upload from file is now mandatory.
Simon Descarpentries <sid@sopinspace.com>
parents:
575
diff
changeset
|
15 |
if [[ -z "$FIREFOX_BIN" && $OSTYPE =~ ^darwin ]]; then |
|
a0b695aace0a
File field of Upload from file is now mandatory.
Simon Descarpentries <sid@sopinspace.com>
parents:
575
diff
changeset
|
16 |
FIREFOX_BIN_BASE=`mdfind "kMDItemCFBundleIdentifier == 'org.mozilla.firefox'"` |
|
a0b695aace0a
File field of Upload from file is now mandatory.
Simon Descarpentries <sid@sopinspace.com>
parents:
575
diff
changeset
|
17 |
export FIREFOX_BIN="$FIREFOX_BIN_BASE/Contents/MacOS/firefox" |
|
a0b695aace0a
File field of Upload from file is now mandatory.
Simon Descarpentries <sid@sopinspace.com>
parents:
575
diff
changeset
|
18 |
fi |
|
a0b695aace0a
File field of Upload from file is now mandatory.
Simon Descarpentries <sid@sopinspace.com>
parents:
575
diff
changeset
|
19 |
|
| 616 | 20 |
export SAFARI_BIN=`which safari` |
21 |
if [[ -z "$SAFARI_BIN" && $OSTYPE =~ ^darwin ]]; then |
|
22 |
SAFARI_BIN_BASE=`mdfind "kMDItemCFBundleIdentifier == 'com.apple.Safari'"` |
|
23 |
export SAFARI_BIN="$SAFARI_BIN_BASE/Contents/MacOS/safari" |
|
24 |
fi |
|
25 |
||
26 |
||
27 |
||
|
613
a0b695aace0a
File field of Upload from file is now mandatory.
Simon Descarpentries <sid@sopinspace.com>
parents:
575
diff
changeset
|
28 |
if [ -x ./node_modules/.bin/karma ]; then |
|
a0b695aace0a
File field of Upload from file is now mandatory.
Simon Descarpentries <sid@sopinspace.com>
parents:
575
diff
changeset
|
29 |
KARMA=./node_modules/.bin/karma |
|
a0b695aace0a
File field of Upload from file is now mandatory.
Simon Descarpentries <sid@sopinspace.com>
parents:
575
diff
changeset
|
30 |
else |
|
a0b695aace0a
File field of Upload from file is now mandatory.
Simon Descarpentries <sid@sopinspace.com>
parents:
575
diff
changeset
|
31 |
KARMA=`which karma` |
|
a0b695aace0a
File field of Upload from file is now mandatory.
Simon Descarpentries <sid@sopinspace.com>
parents:
575
diff
changeset
|
32 |
fi |
|
a0b695aace0a
File field of Upload from file is now mandatory.
Simon Descarpentries <sid@sopinspace.com>
parents:
575
diff
changeset
|
33 |
|
|
a0b695aace0a
File field of Upload from file is now mandatory.
Simon Descarpentries <sid@sopinspace.com>
parents:
575
diff
changeset
|
34 |
"$KARMA" start $@ |
|
a0b695aace0a
File field of Upload from file is now mandatory.
Simon Descarpentries <sid@sopinspace.com>
parents:
575
diff
changeset
|
35 |
|
|
a0b695aace0a
File field of Upload from file is now mandatory.
Simon Descarpentries <sid@sopinspace.com>
parents:
575
diff
changeset
|
36 |