Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dorchies David
HaTaTA
Commits
8d850630
Commit
8d850630
authored
Jul 27, 2021
by
Dorchies David
Browse files
ci: add check and pkgdown website generation
parent
6cc680c5
Pipeline
#25551
passed with stages
in 1 minute and 27 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
8d850630
stages
:
-
check
-
website
default
:
tags
:
[
docker
]
image
:
rocker/tidyverse:4.0.5
variables
:
R_LIBS_USER
:
"
$CI_PROJECT_DIR/ci/lib"
CHECK_DIR
:
"
$CI_PROJECT_DIR/ci/logs"
BUILD_LOGS_DIR
:
"
$CI_PROJECT_DIR/ci/logs/$CI_PROJECT_NAME.Rcheck"
cache
:
paths
:
-
$R_LIBS_USER
before_script
:
-
mkdir -p $R_LIBS_USER $BUILD_LOGS_DIR
-
echo "R_LIBS='$R_LIBS_USER'" > .Renviron
-
R -e 'devtools::install_deps(dep = T)'
check
:
stage
:
check
script
:
-
if [[ $NOT_CRAN == "false" ]]; then sudo apt-get update && sudo apt-get install -y qpdf; fi
-
R -e 'rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "warning")'
website
:
stage
:
website
only
:
-
master
-
dev
-
tags
script
:
-
R -e 'devtools::update_packages(packages = "pkgdown")'
-
R -e 'pkgdown::build_site()'
-
sudo apt-get update && sudo apt-get install -y sshpass rsync
-
sshpass -p "${OVH_PASS}" rsync -a -e "ssh -o StrictHostKeyChecking=no" docs/ ${OVH_LOGIN}@${OVH_SFTP}:/home/${OVH_LOGIN}/hatata/
_pkgdown.yml
0 → 100644
View file @
8d850630
url
:
https://hatata.dorchies.net
development
:
mode
:
unreleased
template
:
params
:
bootswatch
:
flatly
navbar
:
structure
:
right
:
[
gitlab
]
components
:
github
:
~
gitlab
:
icon
:
fab fa-gitlab fa-lg
href
:
https://gitlab.irstea.fr/david.dorchies/hatata
repo
:
url
:
home
:
https://gitlab.irstea.fr/david.dorchies/hatata/
source
:
https://gitlab.irstea.fr/david.dorchies/hatata/-/blob/master/
issue
:
https://gitlab.irstea.fr/david.dorchies/hatata/-/issues/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment