-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy path.gitlab-ci.yml
82 lines (67 loc) · 1.45 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
---
stages:
- lint
- tests
- dist
- deploy
# Dependencies definitions
# ------------------------
.distribution:
stage: dist
script:
- make tests
# Jobs definitions
# ----------------
# Code Linters
shellcheck:
stage: lint
image: koalaman/shellcheck-alpine
script:
- shellcheck --shell=bash update.bash tests/commons tests/results
# Code tests
tests:
stage: tests
image: archlinux
before_script:
- pacman -Syu --noconfirm --noprogressbar make grep pass git jq kcov
script:
- make tests COVERAGE=true
- mv /tmp/tests/pass-update/kcov kcov/
artifacts:
expire_in: 2 days
paths:
- kcov/
# Distribution tests
archlinux:
image: archlinux
extends: .distribution
before_script:
- pacman -Syu --noconfirm --noprogressbar make grep pass git jq kcov
ubuntu:
image: ubuntu
extends: .distribution
before_script:
- apt-get update -q && apt-get install -y make pass grep git
debian:
image: debian
extends: .distribution
before_script:
- apt-get update -q && apt-get install -y make pass grep wget git xz-utils
fedora:
image: fedora
extends: .distribution
before_script:
- dnf -y install make gpg pass grep git findutils --setopt=install_weak_deps=False
# Code coverage deployment
pages:
stage: deploy
dependencies:
- tests
script:
- mv kcov/ public/
artifacts:
expire_in: 2 days
paths:
- public
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH