Skip to content
Snippets Groups Projects
Commit 7ad4f422 authored by nimrod's avatar nimrod
Browse files

CI templates.

parent fce2660f
No related branches found
No related tags found
No related merge requests found
Pipeline #574 failed
--- ---
stages: include:
- test - project: shore/ci-templates
file: templates/pre-commit.yml
pre-commit: - project: shore/ci-templates
stage: test file: templates/pre-commit-repo.yml
image: adarnimrod/ci-images:pre-commit - project: shore/ci-templates
variables: file: templates/bats.yml
XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache"
script:
- pre-commit run --all-files
cache:
paths:
- .cache/
bats:
stage: test
image: alpine
before_script:
- apk add --update bats git
- git config --global user.email "you@example.com"
- git config --global user.name "Your Name"
script:
- bats tests/ | tee results.tap
after_script:
# yamllint disable-line rule:line-length
- wget https://github.com/cloudbees-oss/juxr/releases/download/0.1.22/juxr-x86_64-unknown-linux-musl.tar.gz -O - | tar -xz
- ./juxr tap --name bats --output results/ -- cat results.tap
artifacts:
reports:
junit: results/*.xml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment