forked from radcli/radcli
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
38 lines (33 loc) · 1.3 KB
/
.travis.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
dist: trusty
sudo: required
language: c
compiler:
- gcc
env:
- SCAN_BUILD="scan-build --status-bugs" CFLAGS="-g -O2" CHECK=0
- CFLAGS="-fsanitize=address -g -O2" LDFLAGS="-lasan" CHECK=1
before_script:
- sudo apt-get update -qq
- sudo apt-get install -qq clang cppcheck freeradius libgnutls28-dev libasan0
- sudo cp tests/docker/freeradius-users /etc/freeradius/users
- sudo cp tests/docker/radius-clients-notcp.conf /etc/freeradius/clients.conf
- sudo sed -i 's/auth+acct/auth/g' tests/docker/tls.conf
- sudo cp tests/docker/tls.conf /etc/freeradius/sites-enabled/tls
- sudo sed -i 's|ipaddr = 0.0.0.0/0|ipaddr = 127.0.0.1|g' /etc/freeradius/clients.conf
- sudo sed -i 's|ipv6addr = ::|ipv6addr = ::1|g' /etc/freeradius/clients.conf
- sudo killall freeradius
- sudo /usr/sbin/freeradius -fxx -l stdout >/dev/null 2>&1 &
- touch config.rpath && autoreconf -fvi
script:
- CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" $SCAN_BUILD ./configure --with-tls
- $SCAN_BUILD make -j $(nproc)
- if test $CHECK = 1;then
sudo NO_SERVER_TLS=1 NO_SERVER_TCP=1 SERVER_IP=127.0.0.1 SERVER_IP6=127.0.0.1 make check &&
touch doc/stamp_mans &&
make ABI_SKIP=1 dist;
fi
after_script:
- cppcheck --force -q -Iinclude lib src
- sudo killall freeradius
after_failure:
- cat tests/test-suite.log