Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
60 additions
and
6 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 +1,2 @@ | ||
/node_modules | ||
/.proof.out |
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,18 @@ | ||
language: node_js | ||
|
||
node_js: | ||
- 0.8 | ||
|
||
branches: | ||
only: | ||
- master | ||
- proof | ||
- travis-ci | ||
|
||
# Not using `npm install --dev` because it is recursive. It will pull in the all | ||
# development dependencies for CoffeeScript. Way too much spew in the Travis CI | ||
# build output. | ||
|
||
before_install: | ||
- npm install | ||
- npm install istanbul coveralls |
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,18 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
rm -rf coverage | ||
|
||
count=1; | ||
for file in $(find t -name \*.t.js); do | ||
node_modules/.bin/istanbul cover -x 't/**' $file > /dev/null 2>&1 | ||
mv coverage/coverage.json coverage/coverage$count.json | ||
count=$(expr $count + 1) | ||
done | ||
|
||
node_modules/.bin/istanbul report --root coverage --dir coverage > /dev/null | ||
|
||
sed -i -e s,'^SF:'`pwd`/,SF:, coverage/lcov.info | ||
|
||
exit 0 |
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,17 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
echo "" | ||
|
||
(proof run t/*/*.t.js | tee .proof.out | proof progress) || (proof errors < .proof.out) || exit 1 | ||
|
||
if [ "$TRAVIS" = "true" ]; then | ||
echo "running with coverage" | ||
t/cover | ||
|
||
echo "submitting to coveralls.io" | ||
(cat coverage/lcov.info | node_modules/.bin/coveralls) > /dev/null 2>&1 | ||
fi | ||
|
||
echo "" |