Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 36d16c7a

Přidáno uživatelem Ondřej Fibich před téměř 7 roky(ů)

Fix building on Jessie (Jessie comes with apt uncapable to install DEB directly)

Zobrazit rozdíly:

.travis.yml
# 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
- 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
- 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
test/install.sh
set -e
if [ $# -ne 1 ]; then
if [ $# -lt 1 ]; then
echo "usage: $0 DEB"
exit 2
fi
......
echo "Install deb package"
apt-get update -q
if apt --version >/dev/null 1>&2; then
apt install -q -y "$DEB"
else
if [ "$2" == "old" ]; then
echo "Old style installation"
dpkg -i "$DEB" || apt-get install -q -y -f
else
apt install -q -y "$DEB"
fi
echo "Daemon test"

Také k dispozici: Unified diff