Skip to content

Commit

Permalink
Merge pull request #530 from benjamin-albert/master
Browse files Browse the repository at this point in the history
Makes the necessary setup for Travis CI
  • Loading branch information
joemccann committed May 7, 2016
2 parents b314e71 + c787319 commit 5cb9a55
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 17 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: node_js
node_js:
- "5.10.1"
before_install:
- npm install -g gulp
13 changes: 13 additions & 0 deletions gulp/tasks/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var gulp = require('gulp');
var Server = require('karma').Server;
var path = require('path');

/**
* Run test once and exit
*/
gulp.task('test', function (done) {
new Server({
configFile: path.resolve(__dirname, '../../karma.conf.js'),
singleRun: true
}, done).start();
});
35 changes: 18 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
],
"scripts": {
"start": "node app.js",
"predeploy": "gulp build --prod"
"postinstall": "gulp build --prod",
"test": "gulp test"
},
"keywords": [
"dillinger",
Expand Down Expand Up @@ -73,6 +74,21 @@
"markdown-it-sup": "^1.0.0",
"markdown-it-toc": "^1.1.0",
"method-override": "^2.3.5",
"gulp": "^3.9.0",
"gulp-autoprefixer": "^3.0.2",
"gulp-combine-media-queries": "^0.2.0",
"gulp-csso": "^0.2.9",
"gulp-filename-media-query": "^1.2.1",
"gulp-group-css-media-queries": "^1.1.0",
"gulp-if": "2.0.0",
"gulp-notify": "^2.2.0",
"gulp-open": "^0.3.0",
"gulp-rev-mtime": "^0.0.4",
"gulp-rimraf": "0.2.0",
"gulp-sass": "^2.0.4",
"gulp-size": "^1.1.0",
"gulp-uncss": "^0.5.1",
"gulp-util": "^3.0.6",
"morgan": "^1.6.1",
"phantom": "^2.0.4",
"rc": "0.3.0",
Expand All @@ -92,25 +108,10 @@
"dom-serializer": "^0.1.0",
"exports-loader": "^0.6.2",
"glob": "^5.0.5",
"gulp": "^3.9.0",
"gulp-autoprefixer": "^3.0.2",
"gulp-combine-media-queries": "^0.2.0",
"gulp-csso": "^0.2.9",
"gulp-filename-media-query": "^1.2.1",
"gulp-group-css-media-queries": "^1.1.0",
"gulp-if": "2.0.0",
"gulp-notify": "^2.2.0",
"gulp-open": "^0.3.0",
"gulp-rev-mtime": "^0.0.4",
"gulp-rimraf": "0.2.0",
"gulp-sass": "^2.0.4",
"gulp-size": "^1.1.0",
"gulp-uncss": "^0.5.1",
"gulp-util": "^3.0.6",
"htmlparser2": "^3.8.3",
"jshint-stylish": "^1.0.0",
"json-loader": "^0.5.1",
"karma": "0.13.10",
"karma": "0.13.22",
"karma-chrome-launcher": "^0.1.5",
"karma-jasmine": "^0.1.5",
"karma-phantomjs-launcher": "^0.1.4",
Expand Down

0 comments on commit 5cb9a55

Please sign in to comment.