Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Much cleaner testing and publishing to coveralls.
- Loading branch information
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -180,6 +180,12 @@ module.exports = function(grunt) { | |
singleRun: true | ||
} | ||
} | ||
}, | ||
|
||
coveralls: { | ||
options: { | ||
coverage_dir: "test/coverage/PhantomJS 1.9.2 (Linux)/" | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
tbranyen
Author
Owner
|
||
} | ||
} | ||
}); | ||
|
||
|
@@ -192,13 +198,17 @@ module.exports = function(grunt) { | |
|
||
// Third-party tasks. | ||
grunt.loadNpmTasks("grunt-karma"); | ||
grunt.loadNpmTasks("grunt-karma-coveralls"); | ||
grunt.loadNpmTasks("grunt-processhtml"); | ||
|
||
// Grunt BBB tasks. | ||
grunt.loadNpmTasks("grunt-bbb-server"); | ||
grunt.loadNpmTasks("grunt-bbb-requirejs"); | ||
grunt.loadNpmTasks("grunt-bbb-styles"); | ||
|
||
// Create an aliased test task. | ||
grunt.registerTask("test", ["karma:run", "coveralls"]); | ||
|
||
// When running the default Grunt command, just lint the code. | ||
grunt.registerTask("default", [ | ||
"clean", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This won't work on Mac and Windows. Anyway to make this dynamic or OS independent?