inst/templates/tic/package/tic.R

add_package_checks()

get_stage("after_success") %>%
  add_code_step(covr::{{coverage_service}}(quiet = FALSE))

if (Sys.getenv("id_rsa") != "") {
  get_stage("before_deploy") %>%
    add_step(step_setup_ssh())

  if (ci()$get_branch() == "master") {
    get_stage("deploy") %>%
      add_code_step(covr::{{coverage_service}}()) %>%
      add_code_step(remotes::install_github("lockedata/starters")) %>%
      add_code_step(install.packages("spelling")) %>%
      add_step(step_build_pkgdown()) %>%
      add_step(step_push_deploy(path = "docs", branch = "gh-pages")) %>%
      add_code_step(library("starters"))%>%
      add_code_step(get_project_health()) %>%
      add_step(step_push_deploy(path = "health", branch = "project-health"))
  }
}
stephlocke/pRojects documentation built on Jan. 7, 2020, 7:27 p.m.