Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 179d54e2

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

Fix running tests on CI in develop.

Zobrazit rozdíly:

.gitlab-ci.yml
- deploy
deb_package_check:
script: "~/ci-scripts/freenetis/freenetis/deb_package_check.sh"
image: debian:jessie
script: tests/deb_package_check.sh
before_script:
- apt-get update -q >/dev/null
- apt-get install -q -y fakeroot lintian >/dev/null
stage: test
tags:
- deb_check
tests/deb_package_check.sh
#!/bin/sh
set -e
MODULE=freenetis
VERSION=`cat version.php | grep "FREENETIS_VERSION" | cut -d"'" -f 4`
DEB_PREFIX=deb_packages/freenetis_${VERSION}
DEBIANS="lenny squeeze wheezy jessie stretch"
cd application/vendors/deb/freenetis
mkdir ../deb_packages 2>/dev/null || true # fix in source
echo "$DEBIANS" | tr " " "\n" | while read OS
do
echo "Debianization for $VERSION $OS"
./debianization.sh "$VERSION" "$OS"
echo "Checking package for $VERSION $OS"
lintian ../${DEB_PREFIX}+${OS}.deb
done

Také k dispozici: Unified diff