-
Notifications
You must be signed in to change notification settings - Fork 14
/
.gitlab-ci.yml
79 lines (75 loc) · 2.19 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
stages:
- build
- analysis
variables:
DEBIAN_FRONTEND: noninteractive
.install-ubuntu-dependencies: &install-ubuntu-dependencies
apt-get install -q -y --no-install-recommends
autoconf-archive
automake
autopoint
build-essential
gettext
gsettings-desktop-schemas-dev
libcanberra-gtk3-dev
libglib2.0-dev
libgtk-3-dev
libgtop2-dev
libice-dev
libpango1.0-dev
libsm-dev
libstartup-notification0-dev
libtool
libvulkan-dev
libx11-dev
libxcomposite-dev
libxcursor-dev
libxdamage-dev
libxext-dev
libxfixes-dev
libxinerama-dev
libxpresent-dev
libxrandr-dev
libxrender-dev
libxres-dev
libxt-dev
yelp-tools
zenity
ubuntu:
image: ubuntu:devel
stage: build
except:
- tags
before_script:
- apt-get update
- *install-ubuntu-dependencies
script:
- ./autogen.sh
- make
- make distcheck
coverity:
image: ubuntu:devel
stage: analysis
when: manual
before_script:
- apt-get update
- *install-ubuntu-dependencies
- apt-get install -q -y --no-install-recommends
ca-certificates
clang
curl
script:
- curl https://scan.coverity.com/download/linux64
--data "token=$COVERITY_TOKEN&project=metacity"
--output /tmp/coverity_tool.tgz
- tar zxf /tmp/coverity_tool.tgz
- CC=clang ./autogen.sh --disable-Werror
- ./cov-analysis-linux64-*/bin/cov-build --dir cov-int make
- tar czf cov-int.tar.gz cov-int
- curl --form token=$COVERITY_TOKEN
--form email=$GITLAB_USER_EMAIL
--form [email protected]
--form version="$(autoconf --trace='AC_INIT:$2')-$CI_COMMIT_SHORT_SHA"
https://scan.coverity.com/builds?project=metacity
only:
- master