Skip to content
This repository was archived by the owner on Jul 27, 2020. It is now read-only.

Commit a7ae4be

Browse files
committed
chore(test) add CI check
1 parent 1f668fd commit a7ae4be

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

karma.conf.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Karma configuration
22
// Generated on Wed Jan 06 2016 19:58:14 GMT-0800 (PST)
3+
var argv = require('yargs').argv;
34

45
module.exports = function(config) {
56
config.set({
@@ -70,7 +71,7 @@ module.exports = function(config) {
7071

7172
// Continuous Integration mode
7273
// if true, Karma captures browsers, runs the tests and exits
73-
singleRun: false,
74+
singleRun: argv.ci,
7475

7576
// Concurrency level
7677
// how many browser should be started simultaneous

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "RxJS + IndexedDB for Angular2",
55
"main": "dist/database.js",
66
"scripts": {
7-
"test": "karma start",
7+
"test": "karma start --ci",
8+
"watch": "karma start",
89
"build": "npm run build_test",
910
"build_test": "tsc -p ./spec",
1011
"clean": "rm -rf dist",
@@ -30,6 +31,7 @@
3031
"reflect-metadata": "^0.1.2",
3132
"systemjs": "^0.19.11",
3233
"typescript": "^1.7.5",
34+
"yargs": "^3.31.0",
3335
"zone.js": "^0.5.10"
3436
},
3537
"typings": "dist/database.d.ts"

0 commit comments

Comments
 (0)