mirror of
https://github.com/rancher/os.git
synced 2025-09-01 14:48:55 +00:00
oh, that's why we're quietly skipping the integration tests
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# help: Run integration tests
|
# help: Run integration tests
|
||||||
set -e
|
set -ex
|
||||||
|
|
||||||
if [ "$INTEGRATION_TESTS" = 0 ]; then
|
if [ "$INTEGRATION_TESTS" = 0 ]; then
|
||||||
exit 0
|
exit 0
|
||||||
|
@@ -5,7 +5,6 @@ cd $(dirname $0)/..
|
|||||||
source ./scripts/version
|
source ./scripts/version
|
||||||
export REPO_VERSION=$VERSION
|
export REPO_VERSION=$VERSION
|
||||||
export COMPRESS="xz --format=lzma -9 --memlimit-compress=80% -e"
|
export COMPRESS="xz --format=lzma -9 --memlimit-compress=80% -e"
|
||||||
export INTEGRATION_TESTS=0
|
|
||||||
|
|
||||||
./scripts/ci
|
./scripts/ci
|
||||||
|
|
||||||
@@ -14,12 +13,20 @@ echo PREPARE
|
|||||||
./scripts/prepare
|
./scripts/prepare
|
||||||
echo PACKAGE
|
echo PACKAGE
|
||||||
./scripts/package
|
./scripts/package
|
||||||
echo INTEGRATION-TEST
|
if [[ "$ARCH" == "" || "$ARCH" == "amd64" ]]; then
|
||||||
./scripts/integration-test
|
export INTEGRATION_TESTS=1
|
||||||
|
echo INTEGRATION-TEST
|
||||||
|
./scripts/integration-test
|
||||||
|
else
|
||||||
|
export INTEGRATION_TESTS=0
|
||||||
|
echo "Skipping integration tests"
|
||||||
|
fi
|
||||||
|
|
||||||
# make generated changelog
|
if [[ "$ARCH" == "" || "$ARCH" == "amd64" ]]; then
|
||||||
lastrelease=$(hub release | grep -v rc | head -n1 | tr -d ' \r\n')
|
# make generated changelog
|
||||||
git log --format="%s: %b" ${lastrelease}..${VERSION} | grep "Merge pull" | sed 's/.*\(#.*\) from .*:\(.*\)/* \1: \2/g' > dist/artifacts/changelog.txt
|
lastrelease=$(hub release | grep -v rc | head -n1 | tr -d ' \r\n')
|
||||||
|
git log --format="%s: %b" ${lastrelease}..${VERSION} | grep "Merge pull" | sed 's/.*\(#.*\) from .*:\(.*\)/* \1: \2/g' > dist/artifacts/changelog.txt
|
||||||
|
fi
|
||||||
|
|
||||||
CHECKSUM="dist/checksums.txt"
|
CHECKSUM="dist/checksums.txt"
|
||||||
rm -f $CHECKSUM
|
rm -f $CHECKSUM
|
||||||
|
Reference in New Issue
Block a user