Skip to content

Commit e82b714

Browse files
committed
chore: add ci test.
1 parent 85fce87 commit e82b714

File tree

4 files changed

+23
-1
lines changed

4 files changed

+23
-1
lines changed

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": [ "es2015" ]
3+
}

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
language: node_js
2+
node_js:
3+
- "4.0"
4+
- "0.12"
5+
- "0.11"
6+
- "0.10"
7+
- "iojs"
8+
- "iojs-v1.0.4"
9+
- "v4.2.1"
10+
- "v4.3.0"
11+
- "v6.9.1"
12+
scripts: {
13+
"test": "mocha "
14+
}

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
> parse sql in js.
44
5+
[![Build Status](https://travis-ci.org/JavaScriptor/js-sql-parser.svg?branch=master)](https://travis-ci.org/JavaScriptor/js-sql-parser)
6+
57
## commonjs usage
68

79
`npm install --save js-sql-parser`

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "",
55
"main": "./dist/parser/sqlParser.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"test": "mocha test/main.test.js --require babel-register"
88
},
99
"repository": {
1010
"type": "git",
@@ -24,6 +24,9 @@
2424
"jison": "^0.4.17"
2525
},
2626
"devDependencies": {
27+
"jison": "^0.4.17",
28+
"babel-preset-es2015": "^6.22.0",
29+
"babel-register": "^6.22.0",
2730
"mocha": "^3.2.0"
2831
}
2932
}

0 commit comments

Comments
 (0)