Skip to content

Commit

Permalink
[skip ci] Merging into master from: test-bot-branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonolmstead33 authored Dec 15, 2016
2 parents 6d56c85 + e074e77 commit 55eaa2e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,18 @@
"space": 4
},
"devDependencies": {
"gulp": "^3.9.1",
"gulp-gunzip": "0.0.3",
"gulp-untar": "0.0.5",
"gulp-util": "^3.0.7",
"mocha": "^3.2.0",
"mockery": "^2.0.0",
"request-progress": "^3.0.0",
"should": "^11.1.2",
"snazzy": "^5.0.0",
"standard": "^8.6.0"
"standard": "^8.6.0",
"vinyl-s3": "^0.3.1",
"vinyl-source-stream": "^1.1.0"
},
"dependencies": {
"aws-sdk": "^2.7.14",
Expand Down
8 changes: 6 additions & 2 deletions src/drone.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@ var Drone = {

return rp(params)
.then(function(data){
var build = data[0];
var build;
for (var i in data){
if (data[i].event == 'tag'){
build = data[i];
}
}
var status = build.status;
console.log(status);
return Promise.resolve(status);
})
.catch(function(err){
Expand Down
10 changes: 5 additions & 5 deletions src/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ function release(repo, version, notes){
json : true,
headers : HEADERS,
body : {
"tag_name": "v" + version,
"tag_name": version,
"target_commitish": "master",
"name": "Release - v"+version,
"name": "Release - "+version,
"body": notes,
"draft": false,
"prerelease": false
Expand All @@ -123,7 +123,7 @@ function release(repo, version, notes){

return rp(params)
.then(function(data){
console.log("success");
console.log("Relase Success");
return Promise.resolve();
})
.catch(function(err){
Expand Down Expand Up @@ -162,7 +162,7 @@ function tag(repo, sha, version){
json : true,
headers : HEADERS,
body : {
"tag": "v"+version,
"tag": version,
"message": TAG_MESSAGE+version,
"object": sha,
"type" : "commit",
Expand Down Expand Up @@ -276,7 +276,7 @@ function checkProxy(params){


//** TEST CODE ****/
//Github.commitAndRelease("build-bot", "test-bot-branch", "0.0.11", "These release notes rule!");
// Github.commitAndRelease("build-bot", "test-bot-branch", "0.0.11", "These release notes rule!");
// Github.request("build-bot", "test-bot-branch", "0.0.10");

// createReference("build-bot", "20ee116227ec18666dc823ede06a3d3710fb05d3", "v0.0.8");
Expand Down

0 comments on commit 55eaa2e

Please sign in to comment.