-
Notifications
You must be signed in to change notification settings - Fork 212
/
tic.R
23 lines (20 loc) · 1.01 KB
/
tic.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
get_stage("before_install") %>%
add_code_step(options(rgl.useNULL = TRUE)) %>%
add_code_step(system("/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x24"))
get_stage("before_script") %>%
add_code_step(system("export DISPLAY=:99.0")) %>%
add_code_step(system("sh -e /etc/init.d/xvfb start")) %>%
add_code_step(system("sleep 3"))
add_package_checks()
# if (Sys.getenv("id_rsa") != "" && !ci()$is_tag()) {
# # pkgdown documentation can be built optionally. Other example criteria:
# # - `inherits(ci(), "TravisCI")`: Only for Travis CI
# # - `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_build_pkgdown()) %>%
# add_step(step_push_deploy(path = "docs", branch = "gh-pages"))
# }