Skip to content

Commit

Permalink
alter travis config so it doesn't build Knockout twice; alter build s…
Browse files Browse the repository at this point in the history
…cript so that failed tests exit the script properly
  • Loading branch information
mbest committed Feb 27, 2013
1 parent 8ba50f8 commit c621474
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
language: node_js
script:
- "build/build.sh"
10 changes: 8 additions & 2 deletions build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.