This repository was archived by the owner on Apr 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 176
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
55 lines (48 loc) · 1.42 KB
/
Copy path.gitlab-ci.yml
File metadata and controls
55 lines (48 loc) · 1.42 KB
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
stages:
- build
.before_script_template: &common_before_script
before_script:
- mkdir -p ~/.cabal /cache/store
- rm -rf ~/.cabal/store
- ln -s /cache/store ~/.cabal/store
- ls -l ..
- mkdir -p ../ghc-mod.sdist-$CI_PIPELINE_ID
- cabal update
- cabal install cabal-doctest
- cabal act-as-setup -- sdist --output-directory=../ghc-mod.sdist-$CI_PIPELINE_ID
- cd core && cabal act-as-setup -- sdist --output-directory=../../ghc-mod.sdist-$CI_PIPELINE_ID/core
- cd ../../ghc-mod.sdist-$CI_PIPELINE_ID
after_script:
- rm -rf "$CI_PROJECT_DIR"/../ghc-mod.sdist-$CI_PIPELINE_ID
.script_template: &common_script
script:
- echo $PWD
- which cabal
- cabal --version
- cabal new-configure --enable-tests
- cabal new-build
- cabal new-test
- cabal new-haddock
.artifacts_template: &common_artifacts
artifacts:
paths:
- ~/.cabal/logs
when: always
job-ghc802:
image: registry.gitlab.com/dxld/ghc-mod:ghc8.2.2-cabal-install2.4.0.0
stage: build
<<: *common_before_script
<<: *common_script
<<: *common_artifacts
job-ghc800:
image: registry.gitlab.com/dxld/ghc-mod:ghc8.0.2-cabal-install2.4.0.0
stage: build
<<: *common_before_script
<<: *common_script
<<: *common_artifacts
job-ghc710:
image: registry.gitlab.com/dxld/ghc-mod:ghc7.10.3-cabal-install2.4.0.0
stage: build
<<: *common_before_script
<<: *common_script
<<: *common_artifacts