From 3abea9370b15ee301344aeb40f9bcf55160c0fd1 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 25 Feb 2014 17:57:04 +0000 Subject: [PATCH] Add jshint to Travis CI config. props jorbin. fixes #26446. git-svn-id: https://develop.svn.wordpress.org/trunk@27267 602fd350-edb4-49c9-b593-d223f7449a82 --- .travis.yml | 2 +- Gruntfile.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 742f35ea8b..7fd8c667d9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,4 +16,4 @@ before_script: - npm install -g grunt-cli - npm install -script: grunt test \ No newline at end of file +script: grunt travis diff --git a/Gruntfile.js b/Gruntfile.js index 0f6ffe8b77..b910622655 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -426,6 +426,7 @@ module.exports = function(grunt) { ['build', 'copy:qunit', 'qunit']); grunt.registerTask('test', 'Runs all QUnit and PHPUnit tasks.', ['qunit:compiled', 'phpunit']); + grunt.registerTask('travis', ['jshint', 'test']); // Default task. grunt.registerTask('default', ['build']);