Permalink
Browse files

alter travis config so it doesn't build Knockout twice; alter build s…

…cript so that failed tests exit the script properly
  • Loading branch information...
1 parent 8ba50f8 commit c6214748ff96eaad372bd96827e7a59b33be4798 @mbest mbest committed Feb 27, 2013
Showing with 8 additions and 4 deletions.
  1. +0 −2 .travis.yml
  2. +8 −2 build/build.sh
View
@@ -1,3 +1 @@
language: node_js
-script:
- - "build/build.sh"
View
@@ -50,9 +50,15 @@ sed -i~ -e "s/##VERSION##/$Version/g" $OutDebugFile $OutMinFile
rm -f output/*.js~
# Run tests in Phantomjs if available
-command -v phantomjs >/dev/null && (cd ..; echo; phantomjs spec/runner.phantom.js || handle_fail)
+if command -v phantomjs >/dev/null
+then
+ (cd ..; echo; phantomjs spec/runner.phantom.js) || handle_fail
+fi
# Run tests in Nodejs if available
-command -v node >/dev/null && (cd ..; echo; node spec/runner.node.js || handle_fail)
+if command -v node >/dev/null
+then
+ (cd ..; echo; node spec/runner.node.js) || handle_fail
+fi
echo; echo "Build succeeded"

0 comments on commit c621474

Please sign in to comment.