forked from FreeRADIUS/freeradius-client
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
22 lines (20 loc) · 943 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
language: c
compiler:
- clang
- gcc
before_script:
- sudo apt-get update -qq
- sudo apt-get install -qq cppcheck
- sudo apt-get install freeradius
- sudo apt-get install libgnutls28-dev
- sudo cp tests/docker/freeradius-users /etc/freeradius/users
- sudo cp tests/docker/radius-clients.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 && ./configure --with-tls
script: make && SERVER_IP=127.0.0.1 SERVER_IP6=127.0.0.1 make check && touch doc/stamp_mans && make dist
after_script: cppcheck -q -Iinclude lib src