-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
41 lines (38 loc) · 1.36 KB
/
.gitlab-ci.yml
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
default:
image: ubuntu:20.04
before_script:
- apt update
- DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends tzdata
- apt install -y software-properties-common wget unzip openssh-client git zlib1g-dev curl build-essential libtinfo5 libgmp10 libgmp-dev llvm-12-dev locales
- locale-gen en_US.UTF-8
- update-locale LANG=en_US.UTF-8
- export LANG=en_US.UTF-8
- export LC_ALL=en_US.UTF-8
- mkdir -p $HOME/.ghcup/bin
- export PATH=$HOME/.ghcup/bin:$PATH
- wget https://downloads.haskell.org/~ghcup/0.1.14/x86_64-linux-ghcup-0.1.14 -O $HOME/.ghcup/bin/ghcup
- chmod +x $HOME/.ghcup/bin/ghcup
- ghcup install cabal
- git config --global url."https://github.com/".insteadOf "git@github.com:"
- git config --global url."https://".insteadOf "git://"
- git submodule update --init
language-dtrace:
tags:
- docker
cache:
key: ${CI_JOB_NAME}-${GHCVER}
paths:
- dist-newstyle/
script:
- ghcup install ghc --platform x86_64-deb8-linux $GHCVER --verbose
- cp cabal.project.dist cabal.project
- cabal update
- cabal configure -w ghc-$GHCVER --enable-tests pkg:mctrace
- cabal build pkg:language-dtrace
- cabal test pkg:language-dtrace
- cabal build pkg:mctrace
- cabal test pkg:mctrace
parallel:
matrix:
- GHCVER: [8.6.5, 8.8.4, 8.10.4]
CABALVER: [1]