simplify travis script
Thomas Aylott committed
Dec 3, 2013 at 16:15 UTC
a13bd1e251742105e1573d632749a60dca5fea54
2 files changed
+3
-5
.travis.yml
+1
-5
@@ -4,11 +4,7 @@ node_js:
4
- '0.10'
5
script:
6
- |
7
- if [ "$TEST_TYPE" = unit ]; then
8
- grunt build && grunt test
9
- else
10
- grunt lint
11
- fi
7
+ grunt $TEST_TYPE
8
after_script:
9
- |
10
if [ "$TEST_TYPE" = unit ] && [ "$SERVER" ]; then
Gruntfile.js
+2
@@ -35,6 +35,8 @@ module.exports = function(grunt) {
35
.filter(function(npmTaskName) { return npmTaskName != 'grunt-cli'; })
36
.forEach(function(npmTaskName) { grunt.loadNpmTasks(npmTaskName); });
37
38
+ grunt.registerTask('unit', ['build', 'test']);
39
+
40
// Alias 'jshint' to 'lint' to better match the workflow we know
41
grunt.registerTask('lint', ['jshint']);
42