Skip to content

Commit

Permalink
Add GitHub deployment to Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
paroga committed Aug 20, 2015
1 parent 4a812cd commit 8dca2bf
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ bower_components
coverage
node_modules

cbor-js.zip
cbor.min.js
sauce_connect.log
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
17 changes: 16 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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");
Expand All @@ -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"]);
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8dca2bf

Please sign in to comment.