From e1d695531b48352049bb0b0f3edcd05b0b638b51 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Thu, 19 Jun 2014 01:05:35 -0700 Subject: [PATCH] automate testing releases --- Gruntfile.coffee | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 9eac1679d..deb0c0e25 100755 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -123,6 +123,9 @@ module.exports = (grunt) -> command: """ git commit -am "Release <%= pkg.meta.name %> v<%= pkg.version %>." git tag -a <%= pkg.version %> -m "<%= pkg.meta.name %> v<%= pkg.version %>." + """ + stable: + command: """ git tag -af stable -m "<%= pkg.meta.name %> v<%= pkg.version %>." git checkout gh-pages git merge --ff-only stable @@ -203,6 +206,16 @@ module.exports = (grunt) -> 'clean:tmpuserscript' ] + grunt.registerTask 'testing', [ + 'build' + 'shell:pack' + 'compress:crx' + 'concat:meta' + 'copy:builds' + 'shell:commit' + 'shell:push' + ] + grunt.registerTask 'release', [ 'build' 'shell:pack' @@ -210,6 +223,7 @@ module.exports = (grunt) -> 'concat:meta' 'copy:builds' 'shell:commit' + 'shell:stable' 'shell:push' ]