Revize 9e10b5d3
Přidáno uživatelem Ondřej Fibich před asi 7 roky(ů)
.travis.yml | ||
---|---|---|
- fakeroot
|
||
- lintian
|
||
|
||
evn:
|
||
- 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:squeeze
|
||
- docker pull debian:wheezy
|
||
- docker pull debian:jessie
|
||
- docker pull debian:stretch
|
||
- docker pull debian:$DISTRIBUTION
|
||
|
||
script:
|
||
# Preparations
|
||
- VERSION="`/bin/bash ./freenetis-monitord.sh version`"
|
||
- DEB_PREFIX=deb_packages/freenetis-monitoring_${VERSION}
|
||
# Build and test on different platforms
|
||
- DEB=deb_packages/freenetis-monitoring_${VERSION}+$DISTRIBUTION.deb
|
||
# Build DEB
|
||
- cd deb
|
||
# Squeeze (no install test)
|
||
- /bin/sh ./debianization.sh "$VERSION" squeeze
|
||
- lintian ${DEB_PREFIX}+squeeze.deb
|
||
# Wheezy
|
||
- /bin/sh ./debianization.sh "$VERSION" wheezy
|
||
- lintian ${DEB_PREFIX}+wheezy.deb
|
||
- docker run -v $TRAVIS_BUILD_DIR:/freenetis debian:wheezy /freenetis/test/install.sh /freenetis/deb/${DEB_PREFIX}+wheezy.deb old
|
||
# Jessie
|
||
- /bin/sh ./debianization.sh "$VERSION" jessie
|
||
- lintian ${DEB_PREFIX}+jessie.deb
|
||
- docker run -v $TRAVIS_BUILD_DIR:/freenetis debian:jessie /freenetis/test/install.sh /freenetis/deb/${DEB_PREFIX}+jessie.deb old
|
||
# Stretch
|
||
- /bin/sh ./debianization.sh "$VERSION" stretch
|
||
- lintian ${DEB_PREFIX}+stretch.deb
|
||
- docker run -v $TRAVIS_BUILD_DIR:/freenetis debian:stretch /freenetis/test/install.sh /freenetis/deb/${DEB_PREFIX}+stretch.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
|
Také k dispozici: Unified diff
Improve Travis CI configuration using envs