Skip to content
Commits on Source (3)
...@@ -4,7 +4,7 @@ bats: ...@@ -4,7 +4,7 @@ bats:
image: registry.shore.co.il/ci-images:bats image: registry.shore.co.il/ci-images:bats
tags: [ns4.shore.co.il] tags: [ns4.shore.co.il]
before_script: before_script:
- mkdir reports - mkdir -p reports
script: script:
- bats --timing --recursive --formatter junit tests/ | tee reports/bats.xml - bats --timing --recursive --formatter junit tests/ | tee reports/bats.xml
variables: variables:
......
...@@ -3,6 +3,9 @@ pre-commit-repo: ...@@ -3,6 +3,9 @@ pre-commit-repo:
stage: test stage: test
image: registry.shore.co.il/ci-images:pre-commit image: registry.shore.co.il/ci-images:pre-commit
tags: [ns4.shore.co.il] tags: [ns4.shore.co.il]
rules:
- exists:
- .pre-commit-hooks.yaml
variables: variables:
XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache" XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache"
script: script:
......
...@@ -6,6 +6,8 @@ pre-commit: ...@@ -6,6 +6,8 @@ pre-commit:
tags: [ns4.shore.co.il] tags: [ns4.shore.co.il]
rules: rules:
- if: $CI_PIPELINE_SOURCE != "schedule" - if: $CI_PIPELINE_SOURCE != "schedule"
exists:
- .pre-commit-config.yaml
variables: variables:
XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache" XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache"
SKIP: |- SKIP: |-
......
---
presentation build:
stage: build
tags: [ns4.shore.co.il]
image:
name: registry.shore.co.il/presentation
entrypoint: [""]
before_script:
- |
[ -z "${PRESENTATION_ROOT:-}" ] || cd "$PRESENTATION_ROOT"
script:
- make --jobs=4
artifacts:
paths:
- '*.pdf'
- '**/*.pdf'