~vonfry/maze-escape

b257f01a68d60571a2ff3e1716af3f0859b3f309 — Vonfry 2 years ago 3bebf84
ci: add gitlab ci
1 files changed, 27 insertions(+), 0 deletions(-)

A .gitlab-ci.yml
A .gitlab-ci.yml => .gitlab-ci.yml +27 -0
@@ 0,0 1,27 @@
default:
  image: haskell
  cache:
    paths:
      - .cabal

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

stages:
  - build
  - test

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

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