瀏覽代碼

Add travis

Matt Coles 9 年之前
父節點
當前提交
c9d325e446
共有 2 個文件被更改,包括 6 次插入1 次删除
  1. 3 1
      package.json
  2. 3 0
      travis.yml

+ 3 - 1
package.json

@@ -4,7 +4,9 @@
4 4
   "description": "Server for the IP project",
5 5
   "main": "index.js",
6 6
   "scripts": {
7
-    "test": "jasmine-node --verbose --captureExceptions spec; node utils/flushdb.js"
7
+    "pretest": "node index.js &",
8
+    "test": "sleep 2; jasmine-node --verbose --captureExceptions spec; node utils/flushdb.js",
9
+    "posttest": "killall node"
8 10
   },
9 11
   "repository": {
10 12
     "type": "git",

+ 3 - 0
travis.yml

@@ -0,0 +1,3 @@
1
+language: node_js
2
+node_js:
3
+  - "5"