File: .travis.yml

package info (click to toggle)
glewlwyd 1.4.9-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 16,096 kB
  • sloc: ansic: 14,286; sql: 1,499; sh: 246; makefile: 150
file content (57 lines) | stat: -rw-r--r-- 2,040 bytes parent folder | download
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
# travis configuration file
# Copyright 2018 Ilya Shipitsin <chipitsine@gmail.com>
#                Nicolas Mora <mail@babelouest.org>
sudo: required

language: c

addons:
  apt:
    packages: [ autoconf, automake, libtool, sqlite3, libsqlite3-dev, libmysqlclient-dev, libgnutls-dev, libconfig-dev, libssl-dev, uuid-dev, libldap2-dev, check, libsubunit-dev, cppcheck ]

matrix:
  include:
    - os: linux
      compiler: gcc
    - os: linux
      compiler: clang
    - env: LABEL=cppcheck
      os: linux
      script:
        - cppcheck --force --enable=warning,missingInclude --error-exitcode=1 . >build.log 2>&1 || (cat build.log && exit 1)
install:
- wget https://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.59.tar.gz
- tar xzf libmicrohttpd-0.9.59.tar.gz
- pushd libmicrohttpd-0.9.59 && ./configure && make && sudo make install && popd
- rm -rf libmicrohttpd-0.9.59
- wget https://github.com/akheron/jansson/archive/v2.11.tar.gz -O jansson-2.11.tar.gz
- tar xzf jansson-2.11.tar.gz
- pushd jansson-2.11 && autoreconf -i && ./configure && make && sudo make install && popd
- rm -rf jansson-2.11
- wget https://github.com/benmcollins/libjwt/archive/v1.9.0.tar.gz -O libjwt-1.9.0.tar.gz
- tar xzf libjwt-1.9.0.tar.gz
- pushd libjwt-1.9.0 && autoreconf -i && ./configure && make && sudo make install && popd
- rm -rf libjwt-1.9.0
- sudo ldconfig

script:
  - mkdir build && pushd build
  - cmake -DWITH_JOURNALD=off -DBUILD_GLEWLWYD_TESTING=on -DBUILD_GLEWLWYD_TEST_LDAP=off ..
  - make
  - sudo make install
  - sudo ldconfig
  - sqlite3 /tmp/glewlwyd.db < ../docs/database/glewlwyd.init-db-only.sqlite3.sql
  - sqlite3 /tmp/glewlwyd.db < ../test/glewlwyd.tests.sqlite3.sql
  - glewlwyd --config-file=../test/glewlwyd-1.conf &
  - export G_PID=$!
  - make test
  - kill $G_PID
  - cmake -DWITH_JOURNALD=off -DBUILD_GLEWLWYD_TESTING=on -DBUILD_GLEWLWYD_TEST_HTTP_AUTH=on ..
  - make
  - sudo make install
  - sudo ldconfig
  - glewlwyd --config-file=../test/glewlwyd-2.conf &
  - export G_PID=$!
  - make test
  - kill $G_PID
  - popd