From 047c3f0beb3fd7aa759863ac1509bc66a8159d37 Mon Sep 17 00:00:00 2001
From: Jeremy Fee <jmfee@usgs.gov>
Date: Mon, 8 Feb 2016 19:17:41 -0700
Subject: [PATCH] Add linting to travis

---
 .travis.yml  | 2 +-
 Gruntfile.js | 8 ++++++--
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index de9c5216..e31ac753 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -25,4 +25,4 @@ install:
   - source activate test-environment
   - pip install obspy
   - npm install
-script: grunt test
+script: grunt lint test
diff --git a/Gruntfile.js b/Gruntfile.js
index a336bb3c..ab4caea6 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -6,14 +6,18 @@ module.exports = function (grunt) {
   config.tasks.forEach(grunt.loadNpmTasks);
   grunt.initConfig(config);
 
+  grunt.registerTask('lint', [
+    'flake8',
+    'jshint'
+  ]);
+
   grunt.registerTask('test', [
     'nose:main'
   ]);
 
   grunt.registerTask('default', [
     'clean',
-    'flake8',
-    'jshint',
+    'lint',
     'test',
     'watch'
   ]);
-- 
GitLab