Browse files

set up travis

  • Loading branch information...
1 parent cacf8d6 commit be3f6f3ae50ca3f26e5b02fcce669f0d1dba5022 @tmont committed Jan 15, 2013
Showing with 6 additions and 17 deletions.
  1. +3 −0 .travis.yml
  2. +2 −0 README.md
  3. +1 −1 package.json
  4. +0 −16 test.sh
View
3 .travis.yml
@@ -0,0 +1,3 @@
+language: node_js
+node_js:
+ - 0.8
View
2 README.md
@@ -1,5 +1,7 @@
# html-parser
+[![Build Status](https://travis-ci.org/tmont/html-parser.png)](https://travis-ci.org/tmont/html-parser)
+
Now with less explosions!
The purpose of this library is not to be the best XML parsing library ever
View
2 package.json
@@ -24,6 +24,6 @@
},
"scripts": {
- "test": "./test.sh"
+ "test": "node_modules/.bin/mocha -R spec ./tests"
}
}
View
16 test.sh
@@ -1,16 +0,0 @@
-MOCHA=./node_modules/.bin/mocha
-if [ ! -x "$MOCHA" ]; then
- echo "Run 'npm link' to install testing dependencies"
- exit 1
-fi
-
-REGEX=$1
-CMD="$MOCHA -R"
-if [ ! -z "$REGEX" ]; then
- CMD="$CMD spec -g \"$REGEX\""
-else
- CMD="$CMD dot"
-fi
-
-CMD="$CMD ./tests"
-$CMD

0 comments on commit be3f6f3

Please sign in to comment.