Skip to content
Browse files

add travis support

  • Loading branch information...
1 parent 5b72613 commit b28a7f344ae5834a7be6800aa444f5c0615c38dc @ltegman ltegman committed
Showing with 13 additions and 3 deletions.
  1. +9 −0 .travis.yml
  2. +1 −1 data/fcc.wiki
  3. +2 −1 package.json
  4. +1 −1 test/TextLib.spec.js
View
9 .travis.yml
@@ -0,0 +1,9 @@
+language: node_js
+
+node_js:
+ - "4.2.3"
+
+before_script:
+ - npm install -g gulp
+
+script: npm test
2 data/fcc.wiki
@@ -1 +1 @@
-Subproject commit 2a53b25281897e662928a7cd9dc9813c61654c45
+Subproject commit c724705e6f3833c4b2b887a2deb37b1d7c4674fe
View
3 package.json
@@ -26,6 +26,7 @@
},
"scripts": {
"start": "node app.js",
- "test": "gulp"
+ "test": "npm run make-env && gulp test",
+ "make-env": "node -e 'var fs = require(\"fs\"); if(!fs.existsSync(\"./dot.env\")) { var rs = fs.createReadStream(\"./dot-EXAMPLE.env\"); var ws = fs.createWriteStream(\"dot.env\"); rs.pipe(ws); }'"
}
}
View
2 test/TextLib.spec.js
@@ -2,7 +2,7 @@
const test = require('tape'),
TextLib = require('../lib/utils/TextLib'),
- KBase = require('../lib/bot/Kbase');
+ KBase = require('../lib/bot/KBase');
test('TextLib tests', t => {
t.plan(3);

0 comments on commit b28a7f3

Please sign in to comment.
Something went wrong with that request. Please try again.