forked from erthink/ReOpenLDAP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
58 lines (51 loc) · 2.02 KB
/
circle.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
machine:
timezone:
Europe/Moscow
environment:
LIBTOOL_SUPPRESS_DEFAULT: no
EXTRA_CFLAGS: "-Wall -Werror -ggdb3 -gdwarf-4"
SLAPD_TESTING_TIMEOUT: 555
TEST_NOOK: $(pwd)/_4upload
database:
override:
dependencies:
pre:
- sudo apt update -q
# - sudo apt upgrade -y -q
post:
- sudo apt install -y -q
uuid-dev libelf-dev krb5-multidev heimdal-multidev libcrack2-dev
libsasl2-dev libperl-dev libtool libltdl-dev binutils-dev libssl-dev
libgnutls-dev libwrap0-dev unixodbc-dev libslp-dev libdb-dev gdb
compile:
pre:
- ./bootstrap.sh --dont-cleanup || cp build/*.rej build/*.orig ${CIRCLE_ARTIFACTS}/
&& ./configure CFLAGS=-Ofast --prefix=${HOME}/_install --enable-check=always
--enable-hipagut=always --enable-debug --disable-syslog --enable-overlays
--enable-maintainer-mode --enable-dynacl --enable-aci --enable-crypt --enable-lmpasswd
--enable-spasswd --enable-slapi
--enable-rlookups --enable-slp --enable-wrappers --enable-backends
--disable-bdb --disable-hdb --disable-ndb --disable-modules
--enable-ci
override:
- make --keep-going && make --keep-going install
post:
- make --keep-going dist
&& mkdir _dist && (cd _dist && tar -xaf ../*.tar.* --strip=1
&& ./configure CFLAGS=-Os --prefix=$HOME/_dist/_install
--enable-overlays=mod --enable-contrib --enable-experimental
--enable-debug --enable-dynacl --enable-aci --enable-crypt --enable-lmpasswd --enable-spasswd
--enable-slapi --enable-rlookups --enable-slp --enable-wrappers --enable-backends=mod
--disable-ndb --disable-dependency-tracking
&& make --keep-going && make --keep-going install)
test:
timeout: 1800
pre:
- ulimit -c unlimited
- mkdir -p $TEST_NOOK
override:
- make test
post:
- ([ -n "$(ls -A $TEST_NOOK)" ] && tar caf ${CIRCLE_ARTIFACTS}/nook.tar.gz -C $TEST_NOOK .)
|| ([ -n "$(ls -A tests/testrun)" ] && tar caf ${CIRCLE_ARTIFACTS}/testrun.tar.gz -C tests/testrun .)
|| echo "No data for upload"