1
0
mirror of https://github.com/rancher/os.git synced 2025-09-14 14:11:18 +00:00

Make sure we can control whether INTEGRATION-TEST is executed

This commit is contained in:
niusmallnan
2018-01-26 21:47:41 +08:00
parent 929bb5abce
commit eaee6ef773
2 changed files with 13 additions and 7 deletions

View File

@@ -13,13 +13,19 @@ echo PREPARE
./scripts/prepare
echo PACKAGE
./scripts/package
if [[ "$ARCH" == "" || "$ARCH" == "amd64" ]]; then
export INTEGRATION_TESTS=1
echo INTEGRATION-TEST
./scripts/integration-test
if [[ "$INTEGRATION_TESTS" != "" ]]; then
if [[ "$ARCH" == "" || "$ARCH" == "amd64" ]]; then
export INTEGRATION_TESTS=1
else
export INTEGRATION_TESTS=0
fi
fi
if [[ "$INTEGRATION_TESTS" != "1" ]]; then
echo INTEGRATION-TEST
./scripts/integration-test
else
export INTEGRATION_TESTS=0
echo "Skipping integration tests"
echo "Skipping integration tests"
fi
if [[ "$ARCH" == "" || "$ARCH" == "amd64" ]]; then