-
Notifications
You must be signed in to change notification settings - Fork 5
/
.gitlab-ci.yml
53 lines (49 loc) · 1.26 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
42
43
44
45
46
47
48
49
50
51
52
53
image: registry.gitlab.com/csicar/pskt
build:
stage: build
script:
- make
- make install
- cp /root/.local/bin/pskt .
artifacts:
paths:
- pskt
build-ubuntu:
image: ubuntu:20.04
stage: build
before_script:
- apt-get update
- apt-get install -y curl libpq-dev libgnutls30 netbase libstdc++6 ca-certificates git clang zlib1g-dev
- curl -sSL https://get.haskellstack.org/ | sh
- stack upgrade --binary-only
- export PATH="~/.local/bin:$PATH"
- hash stack=~/.local/bin/stack
- stack --version
script:
- make
- make install
- cp /root/.local/bin/pskt pskt-ubuntu
artifacts:
paths:
- pskt-ubuntu
build-ubuntu-1804:
image: ubuntu:18.04
stage: build
before_script:
- apt-get update
- apt-get install -y curl libpq-dev libgnutls30 netbase libstdc++6 ca-certificates git clang zlib1g-dev
- curl -sSL https://get.haskellstack.org/ | sh
- export PATH="~/.local/bin:$PATH"
- hash stack=~/.local/bin/stack
- stack --version
script:
- make
- make install
- cp /root/.local/bin/pskt pskt-ubuntu-1804
artifacts:
paths:
- pskt-ubuntu-1804
test:
stage: test
script:
- stack test