Skip to content

Commit

Permalink
Ship coverage to web server from Travis CI.
Browse files Browse the repository at this point in the history
Closes #163.
  • Loading branch information
flatheadmill committed Aug 8, 2013
1 parent e96761c commit 1aac95f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
@@ -1,7 +1,7 @@
language: node_js

node_js:
- 0.10
- '0.10'

branches:
only:
Expand All @@ -15,3 +15,7 @@ branches:
before_install:
- npm install
- npm install istanbul coveralls

env:
global:
- secure: "bZiaK27VanmSHurg3bLSgO06fAOrrCktSE18J6lZf0uOb5ijwiMuHUGhfBwX4iWW850q6CV2zg5IHp2cQlbn2GAm8bS4tPQ0wD2NFCI9I7L2euNs3/+NfvM9KqUyFQoZKiLpyVfoHa74bBfTAlKj6HXvgTf6C9xy1r8c5gpdzIM="
6 changes: 5 additions & 1 deletion t/test
Expand Up @@ -13,13 +13,17 @@ echo ""

(proof run t/*/*.t.js | tee .proof.out | proof progress) || (proof errors < .proof.out) || exit 1

if [ "$TRAVIS" = "true" ] || [ "$MINIFY" = "true" ]; then
if [ "$TRAVIS" = "true" ]; then
echo "generating coverage"
t/cover

echo "submitting coverage to coveralls.io"
cat coverage/lcov.info | node_modules/.bin/coveralls > /dev/null

curl 'https://www.prettyrobots.com/travisty' | sh
fi

if [ "$TRAVIS" = "true" ] || [ "$MINIFY" = "true" ]; then
echo ""
echo "minified"
echo ""
Expand Down

0 comments on commit 1aac95f

Please sign in to comment.