miniupnp/.travis.yml

69 lines
1.4 KiB
YAML
Raw Normal View History

language: c
os:
- linux
- osx
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
- 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
2019-04-23 11:04:40 +00:00
- cmake
2019-09-24 09:29:39 +00:00
- doxygen
- graphviz
# container-based builds
sudo: false
2019-06-04 20:37:35 +00:00
# https://docs.travis-ci.com/user/reference/xenial/
dist: xenial
env:
- 'PROJECT=minissdpd'
- 'PROJECT=miniupnpc'
- 'PROJECT=miniupnpc-async'
- 'PROJECT=miniupnpc-libevent'
- 'PROJECT=miniupnpd'
matrix:
exclude:
- os: osx
env: PROJECT=miniupnpd
- os: osx
compiler: gcc
compiler:
- gcc
- clang
before_install:
- 'if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$CC" == "gcc" ] ; then CC=gcc-4.9; fi'
script:
- 'cd $TRAVIS_BUILD_DIR && cd $PROJECT'
2020-04-28 22:46:00 +00:00
- 'if [ "$PROJECT" = "miniupnpd" ] ; then ./configure --ipv6 --igd2 ; fi'
- 'make -j3'
- 'make check'
2019-10-01 21:48:56 +00:00
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$PROJECT" = "miniupnpd" ]; then
2020-04-28 22:46:00 +00:00
make dox ;
make clean ;
./configure --ipv6 --igd2 --firewall=nftables ;
make -j3 ;
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
after_success:
2020-04-28 22:46:00 +00:00
- 'INSTALLPREFIX="$HOME/$PROJECT" make install'