Skip to content

Commit c5a7e5a

Browse files
committed
fetch solc binary, fixes CI
1 parent 624acfb commit c5a7e5a

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

docs/writing_tests/tutorials/state_transition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The most effective method of learning how to write tests is to study a couple of
1818

1919
### Yul Test
2020

21-
You can find the source code for the Yul test in [tests/homestead/yul/test_yul_example.py](../../tests/homestead/yul/test_yul_example/index.md).
21+
You can find the source code for the Yul test in `tests/homestead/yul/test_yul_example.py`.
2222
It is the spec test equivalent of this [static test](https://github.com/ethereum/tests/blob/develop/src/GeneralStateTestsFiller/stExample/yulExampleFiller.yml).
2323

2424
Lets examine each section.

tox.ini

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,27 @@ setenv =
6666
# Use custom EELS_RESOLUTIONS_FILE if it is set via the environment (eg, in CI)
6767
EELS_RESOLUTIONS_FILE = {env:EELS_RESOLUTIONS_FILE:}
6868
CI = {env:CI:}
69+
# Add the solc binary directory to PATH
70+
PATH = {envdir}/bin{:}{env:PATH}
6971
extras =
7072
test
7173
lint # Required `gentest` for formatting tests
74+
allowlist_externals =
75+
mkdir
76+
curl
77+
wget
78+
chmod
79+
test
80+
solc
81+
commands_pre =
82+
# Create bin directory
83+
mkdir -p {envdir}/bin
84+
# Download solc if it doesn't exist
85+
test -f {envdir}/bin/solc || curl -L -o {envdir}/bin/solc https://github.com/ethereum/solidity/releases/download/v0.8.24/solc-static-linux
86+
# Make it executable
87+
chmod +x {envdir}/bin/solc
88+
# Verify it works
89+
solc --version
7290
commands =
7391
pytest -c ./pytest-framework.ini -n auto -m "not run_in_serial"
7492
pytest -c ./pytest-framework.ini -m run_in_serial

0 commit comments

Comments
 (0)