Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
Merge pull request #13 from bencevans/grunt-travis
Browse files Browse the repository at this point in the history
Grunt ENV based test
  • Loading branch information
bencevans committed Apr 8, 2014
2 parents 5ab21cd + 9e2df3c commit 49943bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ env:
- TEST_CMD=lint
before_script:
- npm install -g grunt-cli
- npm install sequelize
script:
- grunt travis --stack
after_script:
- if [ "$TEST_CMD" = 'test' ]; then npm run coveralls; fi
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ module.exports = function(grunt) {
grunt.registerTask('lint', ['jshint']);

if(process.env.TEST_CMD) {
grunt.registerTask('run-task', process.env.TEST_CMD);
grunt.registerTask('travis', process.env.TEST_CMD);
}

// By default, lint and run all tests.
Expand Down

0 comments on commit 49943bc

Please sign in to comment.