Skip to content

Commit

Permalink
Fix: contracts prep in test container
Browse files Browse the repository at this point in the history
  • Loading branch information
jkilpatr authored and ChristianBorst committed Jan 13, 2025
1 parent 0f2d210 commit de58a4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/dockerfile/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ RUN git clone https://github.com/AltheaFoundation/althea-dex.git /althea/solidit
RUN pushd /althea/integration_tests && PATH=$PATH:$HOME/.cargo/bin cargo build --bin test-runner --release
# generate artifacts for the ethereum contracts
RUN pushd /althea/solidity/ && HUSKY_SKIP_INSTALL=1 npm install && npm run typechain
# copy the contracts over so that the althea bin can use them
RUN pushd /althea/ && bash scripts/compile-contracts-for-go.sh
# generate artifacts for the dex contracts
RUN pushd /althea/solidity-dex/ && HUSKY_SKIP_INSTALL=1 npm install && npx hardhat compile
# The althea bin now depends on the output of the contracts
RUN pushd /althea && make contracts
RUN pushd /althea && make
# build the althea chain binary
RUN pushd /althea/ && PATH=$PATH:/usr/local/go/bin GOPROXY=https://proxy.golang.org make && PATH=$PATH:/usr/local/go/bin make install
RUN git config --global --add safe.directory /althea

0 comments on commit de58a4d

Please sign in to comment.