Loading templates/gitlab-ci-bash.yml +5 −3 Original line number Diff line number Diff line Loading @@ -246,19 +246,21 @@ bash-bats: image: name: "$BASH_BATS_IMAGE" entrypoint: [""] variables: BATS_REPORT_FILENAME: bash-bats.xunit.xml script: - install_bats_libs - mkdir reports - bats --formatter junit --output reports $BASH_BATS_OPTS $BASH_BATS_TESTS - bats --report-formatter junit --output reports $BASH_BATS_OPTS $BASH_BATS_TESTS artifacts: name: "$CI_JOB_NAME artifacts from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG" expire_in: 1 day when: always reports: junit: - "reports/*.bats.xml" - "reports/bash-bats.xunit.xml" paths: - "reports/*.bats.xml" - "reports/bash-bats.xunit.xml" rules: - if: '$BASH_BATS_ENABLED != "true"' when: never Loading Loading
templates/gitlab-ci-bash.yml +5 −3 Original line number Diff line number Diff line Loading @@ -246,19 +246,21 @@ bash-bats: image: name: "$BASH_BATS_IMAGE" entrypoint: [""] variables: BATS_REPORT_FILENAME: bash-bats.xunit.xml script: - install_bats_libs - mkdir reports - bats --formatter junit --output reports $BASH_BATS_OPTS $BASH_BATS_TESTS - bats --report-formatter junit --output reports $BASH_BATS_OPTS $BASH_BATS_TESTS artifacts: name: "$CI_JOB_NAME artifacts from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG" expire_in: 1 day when: always reports: junit: - "reports/*.bats.xml" - "reports/bash-bats.xunit.xml" paths: - "reports/*.bats.xml" - "reports/bash-bats.xunit.xml" rules: - if: '$BASH_BATS_ENABLED != "true"' when: never Loading