---
bats:
  stage: test
  image: registry.shore.co.il/ci-images:bats
  tags: [ns4.shore.co.il]
  before_script:
    - mkdir -p reports
  script:
    - bats --timing --recursive --formatter junit tests/ | tee reports/bats.xml
  variables:
    GIT_SUBMODULE_STRATEGY: recursive
  artifacts:
    reports:
      junit: reports/*.xml
