Skip to content

Commit 1e49c71

Browse files
author
Frand
committed
add ci
1 parent 012e73e commit 1e49c71

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.travis.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
sudo: false
2+
3+
language: node_js
4+
node_js:
5+
- 4
6+
- stable
7+
8+
env:
9+
- CXX=g++-4.8
10+
addons:
11+
apt:
12+
sources:
13+
- ubuntu-toolchain-r-test
14+
packages:
15+
- g++-4.8
16+
17+
services:
18+
- mongodb
19+
20+
before_install:
21+
- $CXX --version
22+
23+
script: npm test

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "a example for nodejs mock nodeclub(nc)",
55
"main": "app.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"test": "./node_modules/mocha/bin/mocha --reporter spec --timeout 10000 -c $(find ./test -name \"*.js\")"
88
},
99
"keywords": [
1010
"nodeclub",

0 commit comments

Comments
 (0)