From 09c0fb89d2142326ac8a096d356beaca71b13355 Mon Sep 17 00:00:00 2001 From: Hyunje Alex Jun Date: Mon, 8 Jul 2013 23:01:49 +0900 Subject: [PATCH] Use travis-ci. --- .travis.yml | 5 +++++ Gruntfile.js | 1 + package.json | 3 +++ 3 files changed, 9 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..6ef04eb --- /dev/null +++ b/.travis.yml @@ -0,0 +1,5 @@ +language: node_js +node_js: + - "0.10" +before_script: + - npm install -g grunt-cli diff --git a/Gruntfile.js b/Gruntfile.js index 1a97187..20271a3 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -82,5 +82,6 @@ module.exports = function (grunt) { grunt.registerTask('lint', ['jshint', 'csslint']); grunt.registerTask('build', ['clean', 'uglify', 'cssmin']); + grunt.registerTask('travis', ['lint']); }; diff --git a/package.json b/package.json index d24edf5..9748513 100644 --- a/package.json +++ b/package.json @@ -11,5 +11,8 @@ "grunt-contrib-cssmin": "~0.6.1", "grunt-contrib-csslint": "~0.1.2", "grunt-contrib-clean": "~0.4.1" + }, + "scripts": { + "test": "grunt travis --verbose" } }