-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run headless tests via Gecko engine.
- Loading branch information
Showing
4 changed files
with
42 additions
and
33 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 |
---|---|---|
@@ -1,6 +1,19 @@ | ||
language: node_js | ||
|
||
node_js: 0.10 | ||
# installs dependencies for testing | ||
install: npm install -g [email protected] | ||
# command to run tests | ||
script: casperjs test tests/headless/run-testsuite.js | ||
|
||
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: | ||
- 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/ | ||
- ./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
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
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 |