forked from proot-me/proot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
71 lines (63 loc) · 1.22 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
image: gcc:7.4.0
stages:
- check
- dist
- coverage
- static-analysis
- deploy
before_script:
- apt-get update -qq
- apt-get install -qq clang-tools-6.0 curl docutils-common gdb lcov libarchive-dev libtalloc-dev strace swig uthash-dev xsltproc
check:
stage: check
script:
- make -C src proot care
- timeout --signal=SIGKILL 5m make -C test
allow_failure: true
dist:
stage: dist
script:
- LDFLAGS="${LDFLAGS} -static" make -C src proot GIT=false
after_script:
- mkdir -p dist
- cp src/proot dist/
- cd dist
- sha256sum ./proot > proot.sha256sum
- md5sum ./proot > proot.md5sum
artifacts:
paths:
- dist
gcov:
stage: coverage
script:
- /bin/sh ./util/coverage.sh
artifacts:
paths:
- gcov-latest
scan-build:
stage: static-analysis
script:
- scan-build-6.0 make -C src proot
after_script:
- cp -R /tmp/scan-build-* scan-build-latest
artifacts:
paths:
- scan-build-latest
pages:
stage: deploy
script:
- /bin/sh ./util/dist.sh
dependencies:
- dist
- gcov
- scan-build
artifacts:
paths:
- public
site:
stage: deploy
script:
- /bin/sh ./util/site.sh
only:
- master
allow_failure: true