Skip to content
Snippets Groups Projects
Commit b274b745 authored by Raphael Franke's avatar Raphael Franke
Browse files

remove unnecessary files

parent fffb976b
No related branches found
No related tags found
1 merge request!1Upload project
stages:
- build
- check
- test
- document
variables:
IMAGE_NAME: "$CI_REGISTRY_IMAGE/ubair"
build_image:
stage: build
image: docker:24.0.5
script:
- docker build -t $IMAGE_NAME:latest .
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker push $IMAGE_NAME:latest
only:
changes:
- renv.lock
- Dockerfile
allow_failure: true
check:
stage: check
image: $IMAGE_NAME:latest
script:
- R -e 'devtools::check(document = FALSE)'
test:
stage: test
image: $IMAGE_NAME:latest
script:
- R -e 'devtools::test()'
document:
stage: document
image: $IMAGE_NAME:latest
script:
- R -e 'devtools::document()'
- |
if ! git diff --exit-code man/ NAMESPACE; then
echo "ERROR: Documentation is not up-to-date. Please run devtools::document() locally and commit the changes."
exit 1
fi
artifacts:
paths:
- man/
- NAMESPACE
## Titel
Als [Rolle]
möchte ich [was tun können],
um [diesen Nutzen zu haben].
## Weiterführende Informationen
[Informationen]
## Akzeptanzkriterien
- [ ] objektive Kriterien
- [ ] ob das Ziel der Aufgabe erreicht wurde
## Aufgaben
- [ ] Welche Aufgaben stehen nach derzeitigem Wissenstand an,
- [ ] um das Issue abzuschließen?
linters: linters_with_defaults(
object_usage_linter = NULL # Disables the object usage linter entirely
)
# All available hooks: https://pre-commit.com/hooks.html
# R specific hooks: https://github.com/lorenzwalthert/precommit
repos:
- repo: https://github.com/lorenzwalthert/precommit
rev: v0.4.3
hooks:
- id: style-files
args: [--style_pkg=styler, --style_fun=tidyverse_style]
# codemeta must be above use-tidy-description when both are used
# - id: codemeta-description-updated
- id: use-tidy-description
- id: readme-rmd-rendered
- id: parsable-R
- id: no-browser-statement
- id: no-print-statement
- id: no-debug-statement
- id: deps-in-desc
- id: pkgdown
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
args: ['--maxkb=4000']
- id: file-contents-sorter
files: '^\.Rbuildignore$'
- id: end-of-file-fixer
exclude: '\.Rd'
- repo: https://github.com/pre-commit-ci/pre-commit-ci-config
rev: v1.6.1
hooks:
# Only required when https://pre-commit.ci is used for config validation
- id: check-pre-commit-ci-config
- repo: local
hooks:
- id: forbid-to-commit
name: Don't commit common R artifacts
entry: Cannot commit .Rhistory, .RData, .Rds or .rds.
language: fail
files: '\.(Rhistory|RData|Rds|rds)$'
# `exclude: <regex>` to allow committing specific files
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.