Skip to content
Snippets Groups Projects
Commit c2b62ea2 authored by Walmes Marques Zeviani's avatar Walmes Marques Zeviani
Browse files

Adiciona arquivos para integração contínua.

parent 9fb4ddef
Branches
No related tags found
No related merge requests found
Pipeline #
#!/usr/bin/env Rscript
options(echo = TRUE)
#--------------------------------------------
# Carregar pacotes.
# - Para desenvolvimento do pacote
library(devtools)
library(roxygen2)
# - Instalando as dependencias (descritas no DESCRIPTION)
install_deps(dependencies = TRUE,
quiet = TRUE,
upgrade = FALSE,
repos = "http://cran-r.c3sl.ufpr.br/")
sessionInfo()
#--------------------------------------------
# Carregar objetos do pacote.
file.create("NAMESPACE")
load_all()
ls("package:MRDCr")
packageVersion("MRDCr")
#--------------------------------------------
# Produzir a documentação dos objetos.
document()
cp <- compareVersion(a = as.character(packageVersion("devtools")),
b = "1.9.1")
if (cp > 0) {
check_man()
} else {
check_doc()
}
#--------------------------------------------
# Gerar as vinhetas, caso existam.
if (length(list.files("./vignettes"))) {
build_vignettes(dependencies = FALSE)
}
#--------------------------------------------
# Checar conteúdo e organização do pacote.
check(cleanup = FALSE,
manual = TRUE,
vignettes = FALSE,
check_dir = "../")
#--------------------------------------------
# Construir pacote.
build(manual = TRUE, vignettes = TRUE)
#--------------------------------------------
# Instalar o pacote.
rm(list = ls())
lib <- path.expand("~/R-test/")
dir.create(lib)
.libPaths(new = lib)
.libPaths()
install()
unlink(lib, recursive = TRUE)
#--------------------------------------------
before_script:
- mkdir -p ~/R-tests/
R_build_package:
script:
- ./.build_package.R
tags:
- r
- devtools
- knitr
- rmarkdown
- testthat
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment