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

feat: Add step to skip e2e tests #47

Merged
merged 1 commit into from
Oct 24, 2023
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
38 changes: 21 additions & 17 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,27 @@ jobs:
name: Checkout e2e repo and run tests
no_output_timeout: 60m
command: |
cd ~
git clone https://github.com/etherspot/e2e-sdk-prime.git
cd e2e-sdk-prime
sed -i.bak "s/_private_key_/$PRIVATE_KEY/g" .env
sed -i.bak "s/_project_key_/$PROJECT_KEY/g" .env
mv package.json temp.json
jq -r '.dependencies."@etherspot/prime-sdk" |= "file:../etherspot-prime-sdk"' temp.json > package.json
rm temp.json
npm i
touch ~/logs.txt
npm run test-mainnet |& tee ~/logs.txt
chmod 755 ~/logs.txt
cat ~/logs.txt
echo "export LOGS='$(cat ~/logs.txt)'" >> $BASH_ENV
echo $BASH_ENV
rm ~/logs.txt
source "$BASH_ENV"
if [ "$SKIP_E2E_TESTS" = "false" ]; then
cd ~
git clone https://github.com/etherspot/e2e-sdk-prime.git
cd e2e-sdk-prime
sed -i.bak "s/_private_key_/$PRIVATE_KEY/g" .env
sed -i.bak "s/_project_key_/$PROJECT_KEY/g" .env
mv package.json temp.json
jq -r '.dependencies."@etherspot/prime-sdk" |= "file:../etherspot-prime-sdk"' temp.json > package.json
rm temp.json
npm i
touch ~/logs.txt
npm run test-mainnet |& tee ~/logs.txt
chmod 755 ~/logs.txt
cat ~/logs.txt
echo "export LOGS='$(cat ~/logs.txt)'" >> $BASH_ENV
echo $BASH_ENV
rm ~/logs.txt
source "$BASH_ENV"
else
echo "E2E Tests skipped..."
fi
- run:
name: Move test report
command: |
Expand Down
Loading