Revize 44b9036b
Přidáno uživatelem Ondřej Fibich před více než 6 roky(ů)
.gitlab-ci.yml | ||
---|---|---|
- deploy
|
||
|
||
deb_package_check:
|
||
script: /bin/bash tests/deb_package_check.sh
|
||
script: tests/deb_package_check.sh
|
||
stage: test
|
||
tags:
|
||
- deb_check
|
tests/deb_package_check.sh | ||
---|---|---|
#!/bin/bash
|
||
#!/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)
|
||
DEBIANS="lenny squeeze wheezy jessie"
|
||
|
||
cd application/vendors/deb/freenetis
|
||
mkdir ../deb_packages || true # fix in source
|
||
mkdir ../deb_packages 2>/dev/null || true # fix in source
|
||
|
||
for OS in ${DEBIANS[*]}
|
||
echo "$DEBIANS" | tr " " "\n" | while read OS
|
||
do
|
||
echo "Debianization for $VERSION $OS"
|
||
./debianization.sh "$VERSION" "$OS"
|
Také k dispozici: Unified diff
Rewrite of test DEB package check script for /bin/sh