-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some initial tests. Overhaul the build process.
- Loading branch information
Showing
17 changed files
with
299 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
image: conoria/alpine-r | ||
before_script: | ||
- export _R_CHECK_CRAN_INCOMING_=FALSE | ||
- export _R_CHECK_FORCE_SUGGESTS_=TRUE | ||
|
||
variables: | ||
BUILD_FLAGS: "--no-build-vignettes --no-manual" | ||
|
||
test: | ||
r-base: | ||
stage: test | ||
image: r-base | ||
script: | ||
- apk add --no-cache mariadb-dev | ||
- R CMD build . ${BUILD_FLAGS} | ||
- Rscript -e 'devtools::install_deps(dependencies = TRUE)' | ||
- R CMD check $(ls -1t *.tar.gz | head -n 1) ${BUILD_FLAGS} --as-cran | ||
- apt-get update -qq | ||
- apt-get install -y --no-install-recommends libmariadbclient-dev libcurl4-openssl-dev libssh2-1-dev libssl-dev libxml2-dev git | ||
- Rscript -e 'install.packages(c("devtools", "roxygen2", "testthat", "covr"), repos = "https://cran.rstudio.com/")' | ||
- Rscript -e 'devtools::install_deps()' | ||
- Rscript -e 'devtools::check()' | ||
- Rscript -e 'covr::codecov(type = "all", quiet = FALSE)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Package: senamhiR | ||
Type: Package | ||
Title: A Collection of Functions to Obtain Peruvian Climate Data | ||
Version: 0.4.1 | ||
Date: 2017-03-24 | ||
Version: 0.4.2 | ||
Date: 2017-10-08 | ||
Authors@R: c(person(given = c("Conor", "I."), family = "Anderson", | ||
role = c("aut","cre"), email = "[email protected]"), | ||
person(given = c("William", "A."), family = "Gough", role = "ths", | ||
|
@@ -27,6 +27,9 @@ Imports: | |
utils, | ||
XML, | ||
zoo | ||
Suggests: | ||
testthat, | ||
covr | ||
License: GPL (>= 3) | ||
URL: https://gitlab.com/ConorIA/senamhiR/ | ||
BugReports: https://gitlab.com/ConorIA/senamhiR/issues | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,6 @@ | |
#' } | ||
#' | ||
#' @examples | ||
#' catalogue | ||
#' \dontrun{catalogue} | ||
"catalogue" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.onLoad <- function(libname = find.package("senamhiR"), pkgname = "senamhiR") { | ||
.onAttach <- function(libname = find.package("senamhiR"), pkgname = "senamhiR") { | ||
packageStartupMessage("The information accessed by this package was compiled and maintained by Peru's National Meteorology and Hydrology Service (Senamhi). The use of this data is of your sole responsibility.") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.