Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makes the necessary setup for Travis CI #530

Merged
merged 2 commits into from
May 7, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Copy link
Contributor Author

@benjamin-albert benjamin-albert May 7, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't get npm to install gulp properly with node version 4.4.3 (I'm guessing it has something to do with an older version of npm).

This shouldn't mater because we don't have any server side tests yet (and the tests are running in PhantomJS anyway).

@joemccann I'll fix this issue when we setup server side tests (which I want to discuss with you on Slack).

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