Help language development. Donate to The Perl Foundation

Game::Entities zef:jjatria last updated on 2021-11-14

.gitlab-ci.yml
# Only run on merge requests or changes to the default branch
workflow:
  rules:
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
      when: always
      variables:
        BUILD_SOURCEBRANCHNAME: "$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME"
    - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
      when: always
      variables:
        BUILD_SOURCEBRANCHNAME: "$CI_COMMIT_BRANCH"
    - when: never

.test: &test
  image: "rakuland/raku:$CI_JOB_NAME"
  before_script:
    - zef install --/test --deps-only .
  script:
    - prove6 -l

'2021.10': *test

'coverage':
  image: rakuland/raku:latest
  before_script:
    - zef install --/test --deps-only --test-depends .
    - zef install --/test App::RaCoCo
  script:
    - racoco --exec='prove6 -Ilib' --html
    - mv .racoco public
    - find public -type f -not -name "*.html" -delete
  artifacts:
    paths:
      - public
    public: true