Skip to content

Commit 1bcba5f

Browse files
committed
try pre-build upgrade test packages outside of pytest timeout
1 parent 57080fc commit 1bcba5f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

scripts/run-integration-tests

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ HUSKY_SKIP_INSTALL=1 npm ci
1111
npm run typechain
1212
cd ../..
1313
TESTS_TO_RUN="${TESTS_TO_RUN:-all}"
14+
15+
# Pre-build upgrade test packages outside of pytest timeout
16+
if [[ "$TESTS_TO_RUN" == "upgrade" || "$TESTS_TO_RUN" == "all" ]]; then
17+
echo "pre-building upgrade test packages (this may take a while if not cached)..."
18+
nix-build ./integration_tests/configs/upgrade-test-package.nix
19+
fi
20+
1421
if [[ "$TESTS_TO_RUN" == "all" ]]; then
1522
echo "run all tests"
1623
cmd="pytest -vv -s --session-timeout=6000 --timeout=6000"

0 commit comments

Comments
 (0)