From 2f9b0bcfeec3f63a7668d1b26e446b1b26ff841a Mon Sep 17 00:00:00 2001 From: Philipp Baumann Date: Sun, 26 Jul 2020 11:59:09 +0200 Subject: [PATCH] Use {tic} for continous integration --- .Rbuildignore | 1 + .gitignore | 1 + tic.R | 8 ++++++++ 3 files changed, 10 insertions(+) create mode 100644 tic.R diff --git a/.Rbuildignore b/.Rbuildignore index 67530e3..fee661b 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -3,3 +3,4 @@ ^\.travis\.yml$ LICENSE\.md ^appveyor\.yml$ +^tic\.R$ diff --git a/.gitignore b/.gitignore index 2d9d2d5..7bb24e2 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ .Ruserdata .DS_Store ._* +docs/ diff --git a/tic.R b/tic.R new file mode 100644 index 0000000..46ec120 --- /dev/null +++ b/tic.R @@ -0,0 +1,8 @@ +# installs dependencies, runs R CMD check, runs covr::codecov() +do_package_checks() + +if (ci_on_travis() && ci_has_env("BUILD_PKGDOWN")) { + # creates pkgdown site and pushes to gh-pages branch + # only for the runner with the "BUILD_PKGDOWN" env var set + do_pkgdown() +}