Projekt

Obecné

Profil

Stáhnout (808 Bajtů) Statistiky
| Větev: | Tag: | Revize:
24e1f2cd Ondřej Fibich
sudo: false
f3ab12d4 Ondřej Fibich
language: generic

cd1a838b Ondřej Fibich
services:
- docker
24e1f2cd Ondřej Fibich
addons:
apt:
packages:
- fakeroot
- lintian

050bed5c Ondřej Fibich
env:
9e10b5d3 Ondřej Fibich
- DISTRIBUTION=squeeze TEST_MODE=no
- DISTRIBUTION=wheezy TEST_MODE=old
- DISTRIBUTION=jessie TEST_MODE=old
- DISTRIBUTION=stretch TEST_MODE=new

050bed5c Ondřej Fibich
before_install:
9e10b5d3 Ondřej Fibich
- docker pull debian:$DISTRIBUTION
f3ab12d4 Ondřej Fibich
script:
01f081ed Ondřej Fibich
# Preparations
9ae5471a Ondřej Fibich
- VERSION="`/bin/bash ./freenetis-monitord.sh version`"
ca609d8e Ondřej Fibich
- echo $VERSION
9e10b5d3 Ondřej Fibich
- DEB=deb_packages/freenetis-monitoring_${VERSION}+$DISTRIBUTION.deb
# Build DEB
aebb8736 Ondřej Fibich
- cd deb
47d2dc9d Ondřej Fibich
- /bin/sh ./debianization.sh "$VERSION" "$DISTRIBUTION"
9e10b5d3 Ondřej Fibich
- lintian "$DEB"
# Test DEB if enabled by test mode
ca609d8e Ondřej Fibich
- if [ "$TEST_MODE" != "no" ]; then docker run -v $TRAVIS_BUILD_DIR:/freenetis debian:$DISTRIBUTION /freenetis/test/install.sh /freenetis/deb/${DEB} $TEST_MODE; fi