Skip to content

Commit 89b704c

Browse files
committed
Adding Travis CI Configuration
1 parent ca90389 commit 89b704c

File tree

4 files changed

+24
-12
lines changed

4 files changed

+24
-12
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
language: node
2+
node_js:
3+
- "0.10"
4+
before_script:
5+
- npm install -g grunt-cli

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
##JWT.io
2+
3+
[![Build Status](https://travis-ci.org/jsonwebtoken/jsonwebtoken.github.io.png?branch=master)](https://travis-ci.org/jsonwebtoken/jsonwebtoken.github.io)

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@
1515
"grunt-contrib-htmlmin": "^0.2.0",
1616
"grunt-contrib-cssmin": "^0.9.0",
1717
"grunt-mocha-phantomjs": "^0.4.3"
18+
},
19+
"scripts": {
20+
"test": "grunt build --verbose"
1821
}
1922
}

test/test_harness.html

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,37 @@
1-
<!DOCTYPE>
1+
<!DOCTYPE HTML>
22
<html>
33
<head>
44
<meta charset="utf-8">
55
<title>Mocha Tests</title>
6-
<link rel="stylesheet" href="/node_modules/mocha/mocha.css" />
6+
<link rel="stylesheet" href="../node_modules/mocha/mocha.css" />
77
</head>
88
<body>
99
<div id="mocha"></div>
1010

11-
<script src="/node_modules/mocha/mocha.js"></script>
12-
<script src="/node_modules/expect.js/expect.js"></script>
11+
<script src="../node_modules/mocha/mocha.js"></script>
12+
<script src="../node_modules/expect.js/expect.js"></script>
1313

1414
<script>
1515
if (typeof mocha === 'undefined') {
16-
mocha = require('mocha');
16+
mocha = require('mocha');
1717
}
1818
mocha.timeout(25000);
1919
mocha.ui('bdd');
2020
mocha.reporter('html');
2121
mocha.setup({ignoreLeaks: true});
2222
</script>
2323

24-
<script src="vendor/jsonlint/lib/jsonlint.js"></script>
25-
<script src="vendor/json-sans-eval-min/index.js"></script>
26-
<script src="vendor/jsrsasign/index.js"></script>
27-
<script src="vendor/jws.js/index.js"></script>
28-
<script src="js/jwt.js"></script>
24+
<script src="../vendor/jsonlint/lib/jsonlint.js"></script>
25+
<script src="../vendor/json-sans-eval-min/index.js"></script>
26+
<script src="../vendor/jsrsasign/index.js"></script>
27+
<script src="../vendor/jws.js/index.js"></script>
28+
<script src="../js/jwt.js"></script>
2929

30-
<script src="test/test.js"></script>
30+
<script src="../test/test.js"></script>
3131

3232
<script>
33-
mocha.run();
33+
if (window.mochaPhantomJS) { mochaPhantomJS.run(); }
34+
else { mocha.run(); }
3435
</script>
3536
</body>
3637
</html>

0 commit comments

Comments
 (0)