diff --git a/.gitignore b/.gitignore index 83790dc..f5216f5 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,6 @@ bower_components coverage node_modules +cbor-js.zip cbor.min.js sauce_connect.log diff --git a/.travis.yml b/.travis.yml index 8ea1599..5fab208 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,3 +10,11 @@ env: - secure: "UM4h/x6asOBi5D9ieBW3v6TqTwVpFWFopaUH8WQ004xufrLM2BuqhWhldn3x8OdASia7uAzv40G4ApF+nbOdlsdjxqGH18NpsDsdd1aqziZvHbim7UiFwT93fngbPDInd0KI2q3U8ed0M9KtswvlHNAiIMVf8lEPW2B3At4shi8=" - secure: "W3FSQ8IISzEjDov8pMaqO8pTJfQ5In/XMa/756ez80GWmdWs71NyxWKaSCm5aebU++P6ULk9+e1/V8Xz+UF+tZpPN+3Fl0y/aiNLQpi2f37WNEAPvGW7Y2+wUdZa74iTC7nmsVWqYFI47ylFyoKbdcrmSpQ3JFi18E1/QdEx77E=" - secure: "Uax0duT20upUZWkmiuyhLmf12zJTcjwP1t8E5CLdx3eXBoFebs9fiKqoMV3ImUHLuYG4A34JGDMCWkrY8WYIi2ja8idzNjmDTcMz70U5B0v/ChFEKPUQVnpcM0FAkaHwZsoCrO1XJFnzJkHLLFoKEraUdHpl+ADMg1I+E9iakHM=" +deploy: + provider: releases + api_key: + secure: VFop18LuK90E6rBK8OCWJDbdd6+IT/whnXlrO9P24nN+QUo/T1IiHQ0l1UdvKa9/4lRSW8b0tW7tkC10B3eP98aOkt8+VuaoblienmIHzpyv9Pm7JSJilVeNnqr73Q97thRlwqHl0s5olE8EFcdpsufv5XFQwJoNqn20K0NXnBs= + file: cbor-js.zip + skip_cleanup: true + on: + tags: true diff --git a/Gruntfile.js b/Gruntfile.js index 8b05cb8..e7a981b 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -60,6 +60,20 @@ module.exports = function(grunt) { } } }, + compress: { + all: { + options: { + archive: 'cbor-js.zip', + mode: 'zip' + }, + files: [ + { src: 'LICENSE' }, + { src: 'README.md' }, + { src: 'cbor.js' }, + { src: 'cbor.min.js' } + ] + } + }, connect: { server: { options: { @@ -138,6 +152,7 @@ module.exports = function(grunt) { }); grunt.loadNpmTasks("grunt-bower-install-simple"); + grunt.loadNpmTasks("grunt-contrib-compress"); grunt.loadNpmTasks("grunt-contrib-connect"); grunt.loadNpmTasks("grunt-contrib-jshint"); grunt.loadNpmTasks("grunt-contrib-qunit"); @@ -149,5 +164,5 @@ module.exports = function(grunt) { grunt.registerTask("default", ["test"]); grunt.registerTask("test", ["bower-install-simple", "qunit:src", "jshint"]); grunt.registerTask("test-min", ["bower-install-simple", "uglify", "qunit:min"]); - grunt.registerTask("ci", ["test", "coveralls", "test-min", "connect", "saucelabs-qunit"]); + grunt.registerTask("ci", ["test", "coveralls", "test-min", "connect", "saucelabs-qunit", "compress"]); }; diff --git a/package.json b/package.json index 5bd25ed..80a0fcb 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "grunt": "~0.4.5", "grunt-bower-install-simple": "~1.1.4", "grunt-cli": "~0.1.13", + "grunt-contrib-compress": "~0.13.0", "grunt-contrib-connect": "~0.11.2", "grunt-contrib-jshint": "~0.11.2", "grunt-contrib-qunit": "~0.7.0",