Skip to content

Commit

Permalink
Add short flag for integration tests on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
pchila committed Jul 25, 2023
1 parent 2f1b006 commit e8b35c2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .buildkite/scripts/integration_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,16 @@ make mage
# PACKAGE
DEV=true EXTERNAL=true SNAPSHOT=true PLATFORMS=linux/amd64,linux/arm64 PACKAGES=tar.gz mage package

# Test flags
GOTEST_FLAGS=""
if [ "${BUILDKITE_PULL_REQUEST}" != "false" ]; then
# this is a PR, let's run a shorter version of integration tests
GOTEST_FLAGS="-test.short"
fi

# Run integration tests
set +e
TEST_INTEG_TIMESTAMP=true SNAPSHOT=true mage integration:test
GOTEST_FLAGS="${GOTEST_FLAGS}" TEST_INTEG_TIMESTAMP=true SNAPSHOT=true mage integration:test
TESTS_EXIT_STATUS=$?
set -e

Expand Down

0 comments on commit e8b35c2

Please sign in to comment.