-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
57 lines (49 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
variables:
X_CI_LIBURI: "https://gitlab-ext.sigma-chemnitz.de/elito/misc/elito-decode-registers.git"
X_CI_INSTDIR: "${CI_PROJECT_DIR}/../inst"
before_script:
- rm -rf ../decode-lib ${X_CI_INSTDIR}
- |
if test x"${CI_BUILD_TRIGGERED}" = xtrue; then
git clone "${X_CI_UPSTREAM_URI}" ../decode-lib
git -C ../decode-lib reset --no-quiet --hard "${X_CI_UPSTREAM_REF}"
else
git clone "${X_CI_LIBURI}" ../decode-lib
fi
git -C ../decode-lib branch -av
- prefix=${X_CI_INSTDIR}
- export prefix
- make -e -C ../decode-lib install
- PATH=${X_CI_INSTDIR}/bin:$PATH
- |
_make() {
set -x
make -j -e "$@" all
make -j -e "$@" install DESTDIR='tmp-inst'
make -j -e "$@" clean
make -j -e "$@" run-tests
make -j -e "$@" clean
set +x
}
build:direct:
script:
- _make
build:vpath:
script:
- mkdir -p build
- _make -C build -f ../Makefile
.build:extra-dist:
except:
variables:
- $CI_BUILD_TRIGGERED
script:
- _make CHECKER=
build:debian:jessie:
variables:
## avoid -Werror for ancient distributions
CFLAGS: "-O2 -g3 -D_FORTIFY_SOURCE=2 -fstack-protector"
extends: .build:extra-dist
image: $CI_REGISTRY/docker/sigma/ci/elito-debian:jessie
build:debian:sid:
extends: .build:extra-dist
image: $CI_REGISTRY/docker/sigma/ci/elito-debian:sid