Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MIRACUM
dqa
DQAgui
Commits
86c6f020
Commit
86c6f020
authored
4 years ago
by
Jonathan Mang
Browse files
Options
Download
Email Patches
Plain Diff
ci: updated ci for new harbor and base_image
parent
4a79ad64
master
colored_diff_summary
development
development-Differences
feat_new_coreds
fix_no_timefiltering
fix_settings_from_env
lab-module
latest
time_compare_fix
trino
v0.2.4
v0.2.3
v0.2.2
v0.2.1
v0.2.0
v0.1.9
v0.1.8
v0.1.7
v0.1.6
v0.1.5
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+46
-23
.gitlab-ci.yml
with
46 additions
and
23 deletions
+46
-23
.gitlab-ci.yml
+
46
-
23
View file @
86c6f020
variables
:
_R_CHECK_CRAN_INCOMING_
:
"
false"
_R_CHECK_FORCE_SUGGESTS_
:
"
true"
CI_IMAGE_NAME
:
"
docke
r.miracum.org/dqa/base_image:development"
CI_IMAGE_NAME
:
"
harbo
r.miracum.org/dqa
_base_image
/base_image:development"
R_PKG_NAME
:
"
DQAgui"
DOCKER_REGISTRY
:
"
harbor.miracum.org"
default
:
image
:
${CI_IMAGE_NAME}
before_script
:
-
echo ".git" > .dockerignore
# Don't upload the git-folder to the context
-
mkdir -p ci
# Example gitlab-ci for testing R packages:
# https://gist.github.com/artemklevtsov/785ed0472c167246e947a75216852e10
stages
:
-
update_base_image
-
build
-
deploy
.docker_registry
:
before_script
:
-
echo ${REGISTRY_PASSWORD} | docker login -u ${REGISTRY_USERNAME} ${DOCKER_REGISTRY} --password-stdin
-
git clone https://oauth2:${CI_JOB_TOKEN}@gitlab.miracum.org/miracum/dqa/dqa_base_image.git dqa_base_image
-
cd dqa_base_image
after_script
:
-
docker logout ${DOCKER_REGISTRY}
# build_new_base_image_dev:
# stage: update_base_image
# image: docker:git
# extends: .docker_registry
# script:
# - sh deploy_image.sh -t development
# except:
# refs:
# - master
build_new_base_image_latest
:
stage
:
update_base_image
image
:
docker:git
script
:
-
sh deploy_image.sh
only
:
refs
:
-
master
-
tags
check
:
stage
:
build
image
:
${CI_IMAGE_NAME}
# extends: .docker_registry
allow_failure
:
true
# necessary when having development-packages (in remotes-section of DESCRIPTION)
script
:
-
R -e "devtools::install_dev_deps(pkg = '.', upgrade = 'always')"
-
R -e "rcmdcheck::rcmdcheck(path = '.', args = c('--no-tests', '--no-vignettes', '--as-cran'), build_args = c('--no-build-vignettes'), check_dir = '${CI_PROJECT_DIR}/ci')"
artifacts
:
paths
:
...
...
@@ -29,16 +59,13 @@ check:
except
:
refs
:
-
tags
only
:
refs
:
-
master
-
development
create_manual
:
image
:
${CI_IMAGE_NAME}
# extends: .docker_registry
stage
:
build
allow_failure
:
true
script
:
-
R -e "devtools::install_deps(pkg = '.', upgrade = 'always')"
-
R -e "devtools::build_manual(pkg = '.', path = '${CI_PROJECT_DIR}/ci')"
artifacts
:
paths
:
...
...
@@ -52,9 +79,10 @@ create_manual:
-
master
build_source_and_binary
:
image
:
${CI_IMAGE_NAME}
# extends: .docker_registry
stage
:
build
script
:
-
R -e "devtools::install_deps(pkg = '.', upgrade = 'always')"
-
R -e "devtools::build(pkg = '.', path = '${CI_PROJECT_DIR}/ci', binary = FALSE, vignettes = FALSE)"
-
R -e "devtools::build(pkg = '.', path = '${CI_PROJECT_DIR}/ci', binary = TRUE, vignettes = FALSE)"
artifacts
:
...
...
@@ -76,30 +104,25 @@ build_source_and_binary:
testing
:
image
:
${CI_IMAGE_NAME}
# extends: .docker_registry
stage
:
build
script
:
-
R -e "devtools::install_dev_deps(pkg = '.', upgrade = 'always')"
# we only need dev_deps for the vignette and testing
-
R -e "devtools::test(pkg = '.')"
except
:
refs
:
-
tags
only
:
refs
:
-
master
-
development
# To produce a code coverage report as a GitLab page see
# https://about.gitlab.com/2016/11/03/publish-code-coverage-report-with-gitlab-pages/
install
:
image
:
${CI_IMAGE_NAME}
# extends: .docker_registry
stage
:
deploy
script
:
-
R -e "devtools::install_dev_deps(pkg = '.', upgrade = 'always')"
# we only need dev_deps for the vignette and testing
-
R -e "devtools::install(pkg = '.', upgrade = 'always')"
except
:
refs
:
-
tags
only
:
refs
:
-
master
-
development
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help