aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
blob: a503cd69d5d612431ce9e3778576c159e0e7fbfa (plain)
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
language: c++

sudo: required

dist: xenial

matrix:
  include:
  - compiler: clang
    env: MAKEVARS=CPPFLAGS=-Werror
  - compiler: gcc

before_install:
  - sudo apt-get update -qq
  - sudo apt-get install -y bison dejagnu gettext keyutils ldap-utils libldap2-dev libkeyutils-dev libssl-dev python-cjson python-paste python-pyrad slapd tcl-dev tcsh
  - mkdir -p cmocka/build
  - cd cmocka
  - wget https://cmocka.org/files/1.0/cmocka-1.0.1.tar.xz
  - tar -xvf cmocka-1.0.1.tar.xz
  - cd build
  - cmake ../cmocka-1.0.1 -DCMAKE_INSTALL_PREFIX=/usr
  - make
  - sudo make install
  - cd ../..

script: cd src && autoreconf && ./configure --enable-maintainer-mode --with-ldap && make $MAKEVARS && make check