Skip to content

Commit

Permalink
Adds travis.
Browse files Browse the repository at this point in the history
- First build should intentionally fail
  • Loading branch information
captn3m0 committed Jun 6, 2014
1 parent aaae858 commit ae493d8
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
language: node_js
node_js:
- "0.10"
19 changes: 19 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"author": "Remy Sharp <[email protected]> (http://remysharp.com/)",
"name": "mit-licence",
"description": "Hosted MIT License with details controlled through this repo",
"version": "1.0.0",
"repository": {
"type": "git",
"url": "[email protected]:remy/mit-license.git"
},
"scripts": {
"test": "node test.js"
},
"bugs": { "url": "https://github.com/remy/mit-license/issues" },
"licenses": [
{ "type": "MIT",
"url": "http://rem.mit-license.org/"
}
]
}
13 changes: 13 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/env node
var fs = require('fs');
var users = fs.readdirSync("users");
for(i in users){
try{
var content = fs.readFileSync("users/"+users[i]).toString();
JSON.parse(content);
}
catch(e){
console.error("Invalid JSON in file: " + users[i]);
process.exit(1);
}
}

0 comments on commit ae493d8

Please sign in to comment.