Projekt

Obecné

Profil

Stáhnout (808 Bajtů) Statistiky
| Větev: | Tag: | Revize:
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`"
- echo $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:$DISTRIBUTION /freenetis/test/install.sh /freenetis/deb/${DEB} $TEST_MODE; fi
(2-2/7)