Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
r2ogs6
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ogs
OpenGeoSys Tools
r2ogs6
Commits
2da3ee45
Commit
2da3ee45
authored
3 years ago
by
Johannes Boog
Browse files
Options
Downloads
Plain Diff
Merge branch '33-add_ci' into 'master'
Resolve "add gitlab-CI pipeline" Closes
#33
See merge request
!25
parents
0429ea08
8fba1fba
No related branches found
No related tags found
1 merge request
!25
Resolve "add gitlab-CI pipeline"
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.Rbuildignore
+1
-0
1 addition, 0 deletions
.Rbuildignore
.gitlab-ci.yml
+32
-0
32 additions, 0 deletions
.gitlab-ci.yml
DESCRIPTION
+2
-2
2 additions, 2 deletions
DESCRIPTION
with
35 additions
and
2 deletions
.Rbuildignore
+
1
−
0
View file @
2da3ee45
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
^inst/examples/Theis_well_pumping
^inst/examples/Theis_well_pumping
^LICENSE.md
^LICENSE.md
^config.yml
^config.yml
^.gitlab-ci.yml
^doc$
^doc$
^Meta$
^Meta$
^data-raw$
^data-raw$
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
0 → 100644
+
32
−
0
View file @
2da3ee45
image
:
rocker/tidyverse
test
:
stage
:
test
tags
:
-
envinf2
variables
:
R_LIBS_USER
:
"
$CI_PROJECT_DIR/ci/lib/"
RETICULATE_MINICONDA_PATH
:
"
/root/.local/share/r-miniconda/"
#default path
RETICULATE_PYTHON_ENV
:
"
/root/.local/share/r-miniconda/envs/r-reticulate/"
# RETICULATE_PYTHON: "$CI_PROJECT_DIR/ci/r-miniconda/envs/r-reticulate/bin/python3"
script
:
-
if [ ! -d "$R_LIBS_USER" ]; then mkdir -p "$R_LIBS_USER"; fi
-
R -e 'withr::with_libpaths(new = Sys.getenv("R_LIBS_USER"), devtools::install_deps(dependencies = T))'
# checks if the packages from the Imports, Suggests, LinkinTo field
# are already installed in the cache
-
R -e '.libPaths(new = Sys.getenv("R_LIBS_USER"))'
# python dependencies
-
if [ ! -d "$RETICULATE_MINICONDA_PATH" ]; then R -e 'reticulate::install_miniconda()'; fi
-
R -e 'if(tryCatch(reticulate::import("vtk"), error = function(e) return(TRUE))) reticulate::py_install("vtk")'
-
R CMD build . --no-build-vignettes --no-manual
-
R CMD check $(ls -1t *.tar.gz | head -n 1) --no-build-vignettes --no-manual
cache
:
key
:
"
$CI_COMMIT_REF_SLUG"
untracked
:
true
paths
:
-
"
$R_LIBS_USER"
-
"
$RETICULATE_MINICONDA_PATH"
-
"
$RETICULATE_PYTHON_ENV"
# script will only run then attempting to merge/push to master
only
:
-
merge_requests
\ No newline at end of file
This diff is collapsed.
Click to expand it.
DESCRIPTION
+
2
−
2
View file @
2da3ee45
...
@@ -38,9 +38,9 @@ Imports:
...
@@ -38,9 +38,9 @@ Imports:
doParallel,
doParallel,
reticulate,
reticulate,
config,
config,
sticky
sticky,
foreach
RoxygenNote: 7.1.1
RoxygenNote: 7.1.1
VignetteBuilder: knitr
VignetteBuilder: knitr
Depends:
Depends:
foreach,
R (>= 2.10)
R (>= 2.10)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment