Skip to content

Commit

Permalink
Merge branch proof into master.
Browse files Browse the repository at this point in the history
  • Loading branch information
flatheadmill committed Apr 13, 2013
2 parents bafcf48 + e9bc5b7 commit 2c2d545
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1 +1,2 @@
/node_modules
/.proof.out
18 changes: 18 additions & 0 deletions .travis.yml
@@ -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
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -7,7 +7,7 @@
"homepage": "https://github.com/jindw/xmldom",
"repository": {"type": "git","url": "git://github.com/jindw/xmldom.git"},
"main": "./dom-parser.js",
"scripts" : { "test": "proof test */*/*.t.js" },
"scripts" : { "test": "proof platform win32 && proof test */*/*.t.js || t/test" },
"engines": {"node": ">=0.1"},
"dependencies": {},
"devDependencies": { "proof": "0.0.28" },
Expand Down
10 changes: 5 additions & 5 deletions readme.md
@@ -1,8 +1,8 @@
Introduction
-------
Another xml parser for nodejs/browser/rhino for java.
Fully compatible with `W3C DOM level2`; and some compatible with `level3`.
support `DOMParser` and `XMLSerializer` interface such as in browser.
# XMLDOM [![Build Status](https://secure.travis-ci.org/bigeasy/xmldom.png?branch=master)](http://travis-ci.org/bigeasy/xmldom) [![Coverage Status](https://coveralls.io/repos/bigeasy/xmldom/badge.png?branch=master)](https://coveralls.io/r/bigeasy/xmldom) [![NPM version](https://badge.fury.io/js/xmldom.png)](http://badge.fury.io/js/xmldom)

A JavaScript implementation of W3C DOM for Node.js, Rhino and the browser. Fully
compatible with `W3C DOM level2`; and some compatible with `level3`. Supports
`DOMParser` and `XMLSerializer` interface such as in browser.

Install:
-------
Expand Down
18 changes: 18 additions & 0 deletions t/cover
@@ -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
17 changes: 17 additions & 0 deletions t/test
@@ -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 ""

0 comments on commit 2c2d545

Please sign in to comment.