Skip to content

Commit

Permalink
try setting chunked graph secret in testthat
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferis committed Jan 12, 2021
1 parent 0479bb4 commit dde9f25
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/testthat.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
library(testthat)
library(fafbseg)

# try to set token from environment variable on travis
if(identical(Sys.getenv("TRAVIS"), "true")) {
token <- Sys.getenv('CHUNKEDGRAPH_SECRET')
if(nzchar(token)) {
message("Found token of length ", nchar(token), " in CHUNKEDGRAPH_SECRET")
p <- flywire_set_token(token)
message("written to: ", p)
}
}

test_check("fafbseg")

0 comments on commit dde9f25

Please sign in to comment.