Skip to content

Commit 7675998

Browse files
authored
Merge pull request #94 from leancloud/ci
Fix travis-ci
2 parents 3dc1116 + 762ced7 commit 7675998

4 files changed

Lines changed: 10 additions & 8 deletions

File tree

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
language: node_js
2+
23
node_js:
3-
- "0.12"
4-
- "4.2"
4+
- 0.12
5+
- 4
6+
- 6
57

68
script:
79
- npm test
8-
- npm run test-koa
10+
- node -v | grep 'v0.12' || npm run test-koa

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"homepage": "https://github.com/leancloud/leanengine-node-sdk",
5151
"scripts": {
5252
"test": "node_modules/mocha/bin/mocha -R spec --timeout=10000",
53-
"test-koa": "FRAMEWORK=koa node_modules/mocha/bin/mocha -R spec --timeout=10000",
53+
"test-koa": "FRAMEWORK=koa node_modules/mocha/bin/mocha -R spec --timeout=10000 test test/koa",
5454
"test-cov": "node_modules/mocha/bin/mocha --require blanket -R html-cov > coverage.html"
5555
}
5656
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ var bodyParser = require('koa-bodyparser');
33
var request = require('supertest');
44
var should = require('should');
55

6-
var AV = require('..');
7-
var config = require('./config');
6+
var AV = require('../..');
7+
var config = require('../config');
88

99
var app = koa();
1010

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ var koa = require('koa');
44
var request = require('supertest');
55
require('should');
66

7-
var AV = require('..');
8-
var config = require('./config');
7+
var AV = require('../..');
8+
var config = require('../config');
99

1010
AV.init(config);
1111

0 commit comments

Comments
 (0)