Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
Merge pull request #21 from gcanti/travis
Browse files Browse the repository at this point in the history
add travis CI
  • Loading branch information
gcanti committed Feb 17, 2016
2 parents 902ea68 + 6179833 commit 1ce071f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
6 changes: 2 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"extends": "eslint:recommended",
"env": {
"browser": true,
"node": true
Expand All @@ -7,9 +8,6 @@
"modules": true
},
"rules": {
"new-cap": 0,
"no-shadow": 0,
"quotes": [2, "single"],
"comma-dangle": "always"
"semi": 1
}
}
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
language: node_js
node_js:
- "0.12"
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
**Note**: Gaps between patch versions are faulty/broken releases.

## v0.2.5

- **New Feature**
- Added possibility to define patterns with regex flags (thanks @emiloberg)

## v0.2.4

- **New Feature**
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ var types = {
return predicate ? t.subtype(util.Int, predicate) : util.Int;
},

boolean: function (s) {
boolean: function () {
return t.Boolean;
},

Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"name": "tcomb-json-schema",
"version": "0.2.4",
"version": "0.2.5",
"description": "Transforms a JSON Schema to a tcomb type",
"main": "index.js",
"files": [
"index.js",
"util.js"
],
"scripts": {
"test": "mocha"
"lint": "eslint index.js",
"test": "npm run lint && mocha"
},
"repository": {
"type": "git",
Expand All @@ -25,7 +26,8 @@
"tcomb": "^2.2.0"
},
"devDependencies": {
"eslint": "^1.1.0"
"eslint": "1.10.3",
"mocha": "2.4.5"
},
"tags": [
"tcomb",
Expand Down

0 comments on commit 1ce071f

Please sign in to comment.