Skip to content

Commit

Permalink
fix #106 by skipping GitHub test in the absence of a GITHUB_PAT
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle committed Jan 16, 2019
1 parent a89110d commit ab9d864
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/test-AAA-createBasicProject.R
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ test_that("createBasicProject() cleans if there was an error", {

test_that("createBasicProject() can create a GitHub repo", {
skip_if_not(identical(Sys.getenv("TRAVIS"), "true"))
testthat::skip_if_not(nzchar(Sys.getenv("GITHUB_PAT")))
testthat::skip_if_not(gh::gh_whoami()$name == "chibimaelle")
createBasicProject(
name = "test",
packagedeps = "none",
Expand Down

0 comments on commit ab9d864

Please sign in to comment.