CI: Export few helpful variables for CI tests
Export PKG_NAME and PKG_VERSION to make test scripts better readable and also export a path to the helper script providing colorful output. Signed-off-by: Michal Hrusecky <michal.hrusecky@turris.com>
This commit is contained in:
parent
61c4202766
commit
7951e29297
1 changed files with 4 additions and 0 deletions
4
.github/workflows/entrypoint.sh
vendored
4
.github/workflows/entrypoint.sh
vendored
|
@ -4,6 +4,8 @@ mkdir -p /var/lock/
|
||||||
|
|
||||||
opkg update
|
opkg update
|
||||||
|
|
||||||
|
[ -n "$CI_HELPER" ] || CI_HELPER="/ci/.github/workflows/ci_helpers.sh"
|
||||||
|
|
||||||
for PKG in /ci/*.ipk; do
|
for PKG in /ci/*.ipk; do
|
||||||
tar -xzOf "$PKG" ./control.tar.gz | tar xzf - ./control
|
tar -xzOf "$PKG" ./control.tar.gz | tar xzf - ./control
|
||||||
# package name including variant
|
# package name including variant
|
||||||
|
@ -17,6 +19,8 @@ for PKG in /ci/*.ipk; do
|
||||||
|
|
||||||
opkg install "$PKG"
|
opkg install "$PKG"
|
||||||
|
|
||||||
|
export PKG_NAME PKG_VERSION CI_HELPER
|
||||||
|
|
||||||
TEST_SCRIPT=$(find /ci/ -name "$PKG_SOURCE" -type d)/test.sh
|
TEST_SCRIPT=$(find /ci/ -name "$PKG_SOURCE" -type d)/test.sh
|
||||||
|
|
||||||
if [ -f "$TEST_SCRIPT" ]; then
|
if [ -f "$TEST_SCRIPT" ]; then
|
||||||
|
|
Loading…
Reference in a new issue