|
sudo: false
|
|
language: generic
|
|
|
|
services:
|
|
- docker
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- fakeroot
|
|
- lintian
|
|
|
|
env:
|
|
- DISTRIBUTION=squeeze TEST_MODE=no
|
|
- DISTRIBUTION=wheezy TEST_MODE=old
|
|
- DISTRIBUTION=jessie TEST_MODE=old
|
|
- DISTRIBUTION=stretch TEST_MODE=new
|
|
|
|
before_install:
|
|
- docker pull debian:$DISTRIBUTION
|
|
|
|
script:
|
|
# Preparations
|
|
- VERSION="`/bin/bash ./freenetis-monitord.sh version`"
|
|
- DEB=deb_packages/freenetis-monitoring_${VERSION}+$DISTRIBUTION.deb
|
|
# Build DEB
|
|
- cd deb
|
|
- /bin/sh ./debianization.sh "$VERSION" "$DISTRIBUTION"
|
|
- lintian "$DEB"
|
|
# Test DEB if enabled by test mode
|
|
- |
|
|
if [ "$TEST_MODE" != "no" ]; then \
|
|
docker run -v $TRAVIS_BUILD_DIR:/freenetis debian:wheezy \
|
|
/freenetis/test/install.sh /freenetis/deb/${DEB} $TEST_MODE \
|
|
fi
|