Skip to content

Commit

Permalink
add .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Feb 21, 2016
1 parent 5377e75 commit e2fa135
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
language: node_js
node_js:
- "0.10"
- "4.3"
- "5.6"

before_script:
- npm install -g grunt-cli

script:
- grunt lint
- node run_tests

after_success:
- npm install istanbul codecov.io
- ./node_modules/istanbul/lib/cli.js cov run_tests
- cat ./coverage/coverage.json | ./node_modules/codecov.io/bin/codecov.io.js

sudo: false
22 changes: 22 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
'use strict';

module.exports = function(grunt) {

grunt.loadNpmTasks('grunt-eslint');

// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
eslint: {
main: {
src: ['*.js' ]
},
test: {
src: ['test/**/*.js'],
}
},
});

grunt.registerTask('lint', ['eslint']);
grunt.registerTask('default', ['eslint']);
};

0 comments on commit e2fa135

Please sign in to comment.