~vonfry/maze-escape

a441b516fab1f3c999f655f48a6266f721525240 — Vonfry 1 year, 20 days ago 8a8cb1b
ci: fix build stage
1 files changed, 8 insertions(+), 4 deletions(-)

M .gitlab-ci.yml
M .gitlab-ci.yml => .gitlab-ci.yml +8 -4
@@ 1,25 1,29 @@
default:
  image: haskell
  image: haskell:8.10.4
  before_script:
    - "[ -d .cabal ] || cabal update"
  cache:
    paths:
      - .cabal

variables:
  CABAL_DIR: .cabal
  CABAL_BUILDDIR: .cabal/dist
  CABAL_DIR: $CI_PROJECT_DIR/.cabal
  CABAL_BUILDDIR: $CI_PROJECT_DIR/.cabal/dist

stages:
  - build
  - test

build:
  stage: build
  script:
    - cabal build
  rules:
    - if: $CI_COMMIT_BRANCH == "master"
    - if: $CI_COMMIT_BRANCH
    - if: $CI_COMMIT_TAG

test:
  stage: test
  script:
    - cabal test
  rules: