Skip to content

Commit

Permalink
circleci: Run e2e_test before unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karlb committed Sep 27, 2023
1 parent 9257311 commit 3cb915f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
8 changes: 8 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ jobs:
- image: cimg/go:1.19
steps:
- checkout
- run:
command: |
curl -L https://foundry.paradigm.xyz | SHELL=/usr/bin/bash bash
~/.foundry/bin/foundryup
- run:
command: make geth
- run:
command: PATH="~/.foundry/bin:${PATH}" e2e_test/run_all_tests.sh
- run:
command: go run build/ci.go test
lint-geth:
Expand Down
16 changes: 8 additions & 8 deletions e2e_test/run_all_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,26 @@ do
echo -e "\nRun $f"
if "./$f"
then
tput setaf 2
tput setaf 2 || true
echo "PASS $f"
else
tput setaf 1
tput setaf 1 || true
echo "FAIL $f"
((failures++))
((failures++)) || true
fi
tput init
((tests++))
tput init || true
((tests++)) || true
done

## Final summary
echo
if [[ $failures -eq 0 ]]
then
tput setaf 2
tput setaf 2 || true
echo All tests succeeded!
else
tput setaf 1
tput setaf 1 || true
echo $failures/$tests failed.
fi
tput init
tput init || true
exit $failures

0 comments on commit 3cb915f

Please sign in to comment.