aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 5ac7da4e8e2385c11ac8fc89eef648598cfb472a (plain) (blame)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
stages:
  - build

before_script:
  - apt-get install -y git

  - cabal update

  - mkdir -p ../cabal-helper.sdist
  - ls -l ..
  - cabal sdist --output-directory=../cabal-helper.sdist
  - rm -f cabal.sandbox.config && cabal sandbox init
  - cp cabal.sandbox.config ../cabal-helper.sdist
  - cd ../cabal-helper.sdist

after_script:
  - rm -rf  "$CI_PROJECT_DIR"/../cabal-helper.sdist

.job_template: &common_script
  script:
    - echo $PWD
    - ghc-pkg list
    - cabal install --user --only-dependencies -j2 --force-reinstalls --enable-tests --enable-documentation
    - which cabal
    - cabal --version
    - cabal configure --enable-tests
    - cabal build -j2
    - ghc-pkg list
    - which cabal
    - cabal --version
    - ./dist/build/spec/spec
    - cabal haddock

job-ghc8.0.2-cabal-install1.24.0.2:
  image: registry.gitlab.com/dxld/ghc-mod:ghc8.0.2-cabal-install1.24.0.2
  stage: build
  <<: *common_script

job-ghc8.0.1-cabal-install1.24.0.0:
  image: registry.gitlab.com/dxld/ghc-mod:ghc8.0.1-cabal-install1.24.0.0
  stage: build
  <<: *common_script

job-ghc7.10.3-cabal-install1.22.8.0:
  image: registry.gitlab.com/dxld/ghc-mod:ghc7.10.3-cabal-install1.22.8.0
  stage: build
  <<: *common_script

job-ghc7.10.3-cabal-install1.22.5.0:
  image: registry.gitlab.com/dxld/ghc-mod:ghc7.10.3-cabal-install1.22.5.0
  stage: build
  <<: *common_script

job-ghc7.8.4-cabal-install1.18.1.0:
  image: registry.gitlab.com/dxld/ghc-mod:ghc7.8.4-cabal-install1.18.1.0
  stage: build
  <<: *common_script

job-ghc7.6.3-cabal-install1.18.1.0:
  image: registry.gitlab.com/dxld/ghc-mod:ghc7.6.3-cabal-install1.18.1.0
  stage: build
  <<: *common_script

job-ghc7.6.3-cabal-install1.16.1.0:
  image: registry.gitlab.com/dxld/ghc-mod:ghc7.6.3-cabal-install1.16.1.0
  stage: build
  <<: *common_script