2015-06-10 10:26:10 +00:00
|
|
|
language: c
|
|
|
|
|
2015-08-29 09:27:02 +00:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
|
2015-07-21 10:15:06 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2015-08-26 08:32:55 +00:00
|
|
|
# packages list: https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
|
2015-07-21 10:15:06 +00:00
|
|
|
- iptables-dev
|
|
|
|
- libevent-dev
|
|
|
|
- libnfnetlink-dev
|
2019-06-12 05:46:53 +00:00
|
|
|
- libmnl-dev
|
|
|
|
- libnftnl-dev
|
2016-02-12 14:18:32 +00:00
|
|
|
- uuid-dev
|
2020-04-13 01:42:47 +00:00
|
|
|
- libcap-dev
|
2019-04-23 11:04:40 +00:00
|
|
|
- cmake
|
2019-09-24 09:29:39 +00:00
|
|
|
- doxygen
|
|
|
|
- graphviz
|
2015-07-21 10:15:06 +00:00
|
|
|
|
2019-06-04 20:37:35 +00:00
|
|
|
# https://docs.travis-ci.com/user/reference/xenial/
|
|
|
|
dist: xenial
|
|
|
|
|
2015-06-10 10:26:10 +00:00
|
|
|
env:
|
|
|
|
- 'PROJECT=minissdpd'
|
|
|
|
- 'PROJECT=miniupnpc'
|
|
|
|
- 'PROJECT=miniupnpc-async'
|
|
|
|
- 'PROJECT=miniupnpc-libevent'
|
|
|
|
- 'PROJECT=miniupnpd'
|
|
|
|
|
2020-06-20 22:03:26 +00:00
|
|
|
jobs:
|
2015-09-15 15:31:08 +00:00
|
|
|
exclude:
|
|
|
|
- os: osx
|
|
|
|
env: PROJECT=miniupnpd
|
2017-12-12 11:57:12 +00:00
|
|
|
- os: osx
|
|
|
|
compiler: gcc
|
2020-11-04 23:01:04 +00:00
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
env: PROJECT=miniupnpc
|
|
|
|
compiler: i586-mingw32msvc-gcc
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- mingw32
|
|
|
|
before_install: true
|
|
|
|
after_success: true
|
2020-12-12 00:20:48 +00:00
|
|
|
before_script: "i586-mingw32msvc-gcc -v 2>&1 | grep -q -x 'Target: i586-mingw32msvc'"
|
2020-12-12 11:41:37 +00:00
|
|
|
script: make -C miniupnpc -f Makefile.mingw CC=i586-mingw32msvc-gcc DLLWRAP=i586-mingw32msvc-dllwrap WINDRES=i586-mingw32msvc-windres AR=i586-mingw32msvc-ar
|
2020-11-04 23:01:04 +00:00
|
|
|
- os: linux
|
|
|
|
env: PROJECT=miniupnpc
|
|
|
|
compiler: i686-w64-mingw32-gcc
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- gcc-mingw-w64-i686
|
|
|
|
before_install: true
|
|
|
|
after_success: true
|
2020-12-12 11:41:37 +00:00
|
|
|
script: make -C miniupnpc -f Makefile.mingw CC=i686-w64-mingw32-gcc DLLWRAP=i686-w64-mingw32-dllwrap WINDRES=i686-w64-mingw32-windres AR=i686-w64-mingw32-ar
|
2020-11-04 23:01:04 +00:00
|
|
|
- os: linux
|
|
|
|
env: PROJECT=miniupnpc
|
|
|
|
compiler: x86_64-w64-mingw32-gcc
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- gcc-mingw-w64-x86-64
|
|
|
|
before_install: true
|
|
|
|
after_success: true
|
2020-12-12 11:41:37 +00:00
|
|
|
script: make -C miniupnpc -f Makefile.mingw CC=x86_64-w64-mingw32-gcc DLLWRAP=x86_64-w64-mingw32-dllwrap WINDRES=x86_64-w64-mingw32-windres AR=x86_64-w64-mingw32-ar
|
2015-09-15 15:31:08 +00:00
|
|
|
|
2015-07-22 13:06:53 +00:00
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
- clang
|
|
|
|
|
2017-02-15 11:15:36 +00:00
|
|
|
before_install:
|
|
|
|
- 'if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$CC" == "gcc" ] ; then CC=gcc-4.9; fi'
|
2020-06-05 20:46:52 +00:00
|
|
|
- 'if [ "$TRAVIS_OS_NAME" != "osx" ] || [ "$PROJECT" != "miniupnpc" ] ; then
|
|
|
|
export CFLAGS="-fsanitize=address -O1 -g -fno-omit-frame-pointer" ;
|
|
|
|
export LDFLAGS="-fsanitize=address -g" ;
|
|
|
|
fi'
|
2017-02-15 11:15:36 +00:00
|
|
|
|
2015-06-10 10:26:10 +00:00
|
|
|
script:
|
|
|
|
- 'cd $TRAVIS_BUILD_DIR && cd $PROJECT'
|
2020-05-06 22:21:44 +00:00
|
|
|
- 'if [ "$PROJECT" = "miniupnpd" ] ; then mkdir build && cd build && ../configure --ipv6 --igd2 ; fi'
|
2020-04-28 22:46:00 +00:00
|
|
|
- 'make -j3'
|
|
|
|
- 'make check'
|
2020-05-06 22:21:44 +00:00
|
|
|
- 'if [ "$PROJECT" = "miniupnpd" ] ; then make dox ; cd .. ; fi'
|
2019-10-01 21:48:56 +00:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$PROJECT" = "miniupnpd" ]; then
|
2020-05-06 22:21:44 +00:00
|
|
|
mkdir build-nft && cd build-nft && ../configure --ipv6 --igd2 --firewall=nftables ;
|
|
|
|
fi
|
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$PROJECT" = "miniupnpd" ]; then
|
|
|
|
make -j3 && make check ;
|
2019-10-01 21:48:56 +00:00
|
|
|
fi
|
2019-04-23 11:04:40 +00:00
|
|
|
- if [ "$PROJECT" = "miniupnpc" ]; then
|
2020-04-28 22:46:00 +00:00
|
|
|
INSTALLPREFIX="$HOME/_pythonmodule" make pythonmodule;
|
2019-04-23 11:04:40 +00:00
|
|
|
fi
|
|
|
|
- if [ -f "CMakeLists.txt" ] ; then
|
|
|
|
mkdir cmake-build && cd cmake-build &&
|
|
|
|
cmake .. && make ;
|
|
|
|
fi
|
2015-07-22 13:06:53 +00:00
|
|
|
|
|
|
|
after_success:
|
2020-04-28 22:46:00 +00:00
|
|
|
- 'INSTALLPREFIX="$HOME/$PROJECT" make install'
|