forked from mlfit/mlfit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtic.R
More file actions
17 lines (14 loc) · 653 Bytes
/
tic.R
File metadata and controls
17 lines (14 loc) · 653 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
add_package_checks()
get_stage("deploy") %>%
add_step(step_build_pkgdown())
if (Sys.getenv("id_rsa") != "" && Sys.getenv("BUILD_PKGDOWN") != "" && ci()$get_branch() == "master") {
# pkgdown documentation can be built optionally. Other example criteria:
# - `inherits(ci(), "TravisCI")`: Only for Travis CI
# - `ci()$is_tag()`: Only for tags, not for branches
# - `Sys.getenv("BUILD_PKGDOWN") != ""`: If the env var "BUILD_PKGDOWN" is set
# - `Sys.getenv("TRAVIS_EVENT_TYPE") == "cron"`: Only for Travis cron jobs
get_stage("before_deploy") %>%
add_step(step_setup_ssh())
get_stage("deploy") %>%
add_step(step_push_deploy())
}