freenetis-monitoring-github/.travis.yml @ 9e10b5d3
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
|
|||
9e10b5d3 | Ondřej Fibich | evn:
|
|
- DISTRIBUTION=squeeze TEST_MODE=no
|
|||
- DISTRIBUTION=wheezy TEST_MODE=old
|
|||
- DISTRIBUTION=jessie TEST_MODE=old
|
|||
- DISTRIBUTION=stretch TEST_MODE=new
|
|||
cd1a838b | 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`"
|
|
9e10b5d3 | Ondřej Fibich | - DEB=deb_packages/freenetis-monitoring_${VERSION}+$DISTRIBUTION.deb
|
|
# Build DEB
|
|||
aebb8736 | Ondřej Fibich | - cd deb
|
|
9e10b5d3 | Ondřej Fibich | - /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
|