Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix add relayer in e2e tests #1532

Merged
merged 2 commits into from
Nov 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion scripts/e2e_pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,18 @@ if [ "${ENV}" = "sepolia" ]; then
echo "Please provide the STARKNET_SEPOLIA_PRIVATE_KEY environment variable."
exit 1
fi
if [ -z "${EVM_PRIVATE_KEY}" ]; then
if [ -z "${STARKNET_SEPOLIA_EVM_PRIVATE_KEY}" ]; then
echo "Please provide the EVM_PRIVATE_KEY environment variable."
exit 1
fi
if [ -z "${STARKNET_SEPOLIA_RELAYER_ACCOUNT_ADDRESS}" ]; then
echo "Please provide the STARKNET_SEPOLIA_RELAYER_ACCOUNT_ADDRESS environment variable."
exit 1
fi
if [ -z "${STARKNET_SEPOLIA_RELAYER_PRIVATE_KEY}" ]; then
echo "Please provide the STARKNET_SEPOLIA_RELAYER_PRIVATE_KEY environment variable."
exit 1
fi
SKIP="--ignore tests/end_to_end/L1L2Messaging --ignore tests/end_to_end/CairoPrecompiles -k 'not test_should_set_account_bytecode and not test_should_set_account_nonce and not test_should_upgrade_account_class and not test_should_raise_when_class_hash_is_not_declared and not test_should_upgrade_class_hash and not test_should_transfer_ownership and not test_should_return_transaction_count and not test_should_withdraw_all_eth'"
elif [ "${ENV}" = "sepolia-staging" ]; then
export EVM_PRIVATE_KEY="0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d"
Expand All @@ -94,6 +102,18 @@ elif [ "${ENV}" = "sepolia-staging" ]; then
echo "Please provide the STARKNET_SEPOLIA_STAGING_PRIVATE_KEY environment variable."
exit 1
fi
if [ -z "${STARKNET_SEPOLIA_STAGING_RELAYER_ACCOUNT_ADDRESS}" ]; then
echo "Please provide the STARKNET_SEPOLIA_STAGING_RELAYER_ACCOUNT_ADDRESS environment variable."
exit 1
fi
if [ -z "${STARKNET_SEPOLIA_STAGING_RELAYER_PRIVATE_KEY}" ]; then
echo "Please provide the STARKNET_SEPOLIA_STAGING_RELAYER_PRIVATE_KEY environment variable."
exit 1
fi
if [ -z "${STARKNET_SEPOLIA_STAGING_EVM_PRIVATE_KEY}" ]; then
echo "Please provide the EVM_PRIVATE_KEY environment variable."
exit 1
fi

SKIP="--ignore tests/end_to_end/L1L2Messaging --ignore tests/end_to_end/CairoPrecompiles -k 'not test_should_set_account_bytecode and not test_should_set_account_nonce and not test_should_upgrade_account_class and not test_should_raise_when_class_hash_is_not_declared and not test_should_upgrade_class_hash and not test_should_transfer_ownership and not test_should_return_transaction_count and not test_should_withdraw_all_eth'"
fi
Expand Down
Loading