-
Notifications
You must be signed in to change notification settings - Fork 53
/
.travis.yml
57 lines (56 loc) · 1.63 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
language: c
sudo: required
dist: xenial
env:
- CONFIGURE_ARGS="" DISTCHECK=yes
- CONFIGURE_ARGS="--enable-debug" DISTCHECK=yes
- CONFIGURE_ARGS="--disable-debug" DISTCHECK=yes
- COVERAGE=yes CFLAGS="--coverage" LDFLAGS="--coverage" CONFIGURE_ARGS="--enable-debug"
- CLANG_SCAN_BUILD="scan-build --status-bugs"
compiler:
- clang
- gcc
os: linux
arch:
- amd64
- ppc64le
addons:
apt:
packages:
- autoconf
- libjson-c-dev
- libcurl4-gnutls-dev
- libsystemd-dev
- libutempter-dev
- clang
- lcov
- rpm
- lsb-release
- xz-utils
- perl
- sed
- dpkg-dev
- pax
- bzip2
- fakeroot
- patch
- wget
before_install:
- gem install coveralls-lcov
- mkdir -p ~/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS,SDEBS,DEBS}
- ln -sr ~/rpmbuild ~/debbuild
before_script:
- wget https://github.com/debbuild/debbuild/releases/download/20.12.1/debbuild_20.12.1-0ubuntu18.04_all.deb
- sudo dpkg -i debbuild_20.12.1-0ubuntu18.04_all.deb
- echo "%_default_verbosity 2" >> ~/.debmacros
- autoreconf -i -f
- $CLANG_SCAN_BUILD ./configure --disable-silent-rules $CONFIGURE_ARGS
script:
- $CLANG_SCAN_BUILD make
- $CLANG_SCAN_BUILD make check
- make distcheck
- rpmbuild -ta --nodeps tlog-*.tar.gz
- debbuild -ta tlog-*.tar.gz
- test "x$DISTCHECK" = xyes && make distcheck || true
after_success:
- test "x$COVERAGE" = xyes -a "x$CC" = "xgcc" && lcov --compat-libtool --directory ./lib/tlog/ --capture --output-file coverage.info && coveralls-lcov coverage.info