~vonfry/maze-escape

ref: 0.1.0.0 maze-escape/.gitlab-ci.yml -rw-r--r-- 480 bytes
4281a0ebVonfry fixup! Merge branch 'develop' 1 year, 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
default:
  image: haskell:8.10.4
  before_script:
    - "[ -d .cabal ] || cabal update"
  cache:
    paths:
      - .cabal

variables:
  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
    - if: $CI_COMMIT_TAG

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