Skip to content

Commit 6d62f2e

Browse files
committed
debugging travis isn't fun
1 parent 20dab8e commit 6d62f2e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

inst/testscripts/comment.R

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ a <- commandArgs(TRUE)
77
library("httr")
88
base <- 'https://api.github.com/repos/ropensci/plotly/'
99
pr <- sprintf(paste0(base, 'pulls/%s'), a[1])
10-
comments <- sprintf(paste0(base, 'issues/%s/comments'), a[1])
1110
header <- add_headers(`User-Agent` = "plotly",
1211
`Accept` = 'application/vnd.github.v3+json',
1312
`Authorization` = paste0("token ", a[3]))
@@ -50,14 +49,16 @@ commit_msg <- paste0('"Pushed from https://travis-ci.org/ropensci/plotly/builds/
5049
system(paste('git commit -m', commit_msg))
5150
# This post explains how this works -- http://rmflight.github.io/posts/2014/11/travis_ci_gh_pages.html
5251
repo <- paste0("https://", a[3], "@github.com/ropensci/plotly-test-table.git")
53-
system(paste("git pull", repo, "gh-pages"))
54-
system(paste("git push", repo, "gh-pages"))
52+
system(paste("git pull -q", repo, "gh-pages"))
53+
system(paste("git push -q", repo, "gh-pages"))
5554

5655
# post comment if a link to this SHA doesn't exist
5756
# (needed since Travis randomly re-builds stuff)
5857
tbl_link <- sprintf("http://ropensci.github.io/plotly-test-table/tables/%s/index.html",
5958
info$head$sha)
60-
res <- GET(comments, header)
59+
commentz <- sprintf(paste0(base, 'issues/%s/comments'), a[1])
60+
message(commentz)
61+
res <- GET(commentz, header)
6162
warn_for_status(res)
6263
info <- content(res)
6364
old_body <- unlist(lapply(info, "[", "body"))

0 commit comments

Comments
 (0)