Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions tools/travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$SCRIPT_DIR/.."

# FIXME: jscoverage fails to exclude the type definition file, which is breaking coverage.
# Re-enable coverage after https://github.com/fishbar/jscoverage/pull/45 is merged
#node_modules/.bin/jscoverage lib

# TODO: Only run tests once, and use a custom reporter which outputs both LCOV and text,
# for Travis.
node_modules/.bin/mocha test
STATUS=$?

#COVERAGE=1 node_modules/.bin/mocha -R mocha-lcov-reporter test > .lcov

#cat .lcov | node_modules/.bin/coveralls
node_modules/.bin/jscoverage lib
COVERAGE=1 node_modules/.bin/mocha -R mocha-lcov-reporter test > .lcov
cat .lcov | node_modules/.bin/coveralls

exit $STATUS