Revize e3261f5a
Přidáno uživatelem Ondřej Fibich před více než 6 roky(ů)
.gitlab-ci.yml | ||
---|---|---|
- deploy
|
||
|
||
deb_package_check:
|
||
script: "~/ci-scripts/freenetis/freenetis/deb_package_check.sh"
|
||
script: bash tests/deb_package_check.sh
|
||
stage: test
|
||
tags:
|
||
- deb_check
|
tests/deb_package_check.sh | ||
---|---|---|
#!/bin/bash
|
||
|
||
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)
|
||
|
||
cd application/vendors/deb/freenetis
|
||
mkdir ../deb_packages || true # fix in source
|
||
|
||
for OS in ${DEBIANS[*]}
|
||
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
Move DEB package check script directly to repository bundle and run in on CI.