-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to grep exit code from slimerjs testrunnr.
- Loading branch information
Showing
2 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,18 @@ language: node_js | |
|
||
node_js: 0.10 | ||
|
||
before_install: | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start | ||
|
||
install: | ||
- npm install -g http-server | ||
- npm install -g [email protected] | ||
- npm install -g [email protected] | ||
|
||
before_script: | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start | ||
- http-server -s -a 0.0.0.0 -p 8080 & | ||
|
||
script: | ||
- casperjs test tests/headless/run-testsuite.js --host=http://0.0.0.0:8080/ | ||
- casperjs --engine=slimerjs test tests/headless/run-testsuite.js --host=http://0.0.0.0:8080/ | ||
- casperjs test tests/headless/run-testsuite.js --host=http://0.0.0.0:8080/ | ||
- ./tests/run-slimerjs.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
casperjs --engine=slimerjs test tests/headless/run-testsuite.js --host=http://0.0.0.0:8080/ | tee slimerjs.log | ||
|
||
# Figure out the exit code ourselves because Gecko does not allow | ||
# SlimerJS to do so for now. | ||
[ -z "`grep ' 0 failed.' slimerjs.log`" ] && ERROR=1 | ||
rm slimerjs.log | ||
exit $ERROR |