if (identical(Sys.getenv("CIRCLECI"), "true"))
{
if (!dir.exists("reports"))
dir.create("reports")
out.file <- paste0("reports/test_results", Sys.getenv("CIRCLE_NODE_INDEX"), ".xml")
exit.code <- flipDevTools::RunTestsOnCircleCI(filter = "cases1$",
load_package = "none", output_file = out.file)
q(status = exit.code, save = "no")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.