Skip to content

Commit

Permalink
move tests from evm_loader folder (#207)
Browse files Browse the repository at this point in the history
* move tests from evm_loader folder

* chmod
  • Loading branch information
kristinaNikolaevaa authored and afalaleev committed Oct 18, 2023
1 parent ed1f97b commit d6ee3a7
Show file tree
Hide file tree
Showing 78 changed files with 187 additions and 187 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def run_tests(github_sha):
project_name = f"neon-evm-{github_sha}"
stop_containers(project_name)

run_subprocess(f"docker-compose -p {project_name} -f ./evm_loader/docker-compose-ci.yml up -d")
run_subprocess(f"docker-compose -p {project_name} -f ./ci/docker-compose-ci.yml up -d")
container_name = get_solana_container_name(project_name)
click.echo("Start tests")
exec_id = docker_client.exec_create(
Expand All @@ -127,7 +127,7 @@ def run_tests(github_sha):

exec_status = docker_client.exec_inspect(exec_id['Id'])["ExitCode"]

run_subprocess(f"docker-compose -p {project_name} -f ./evm_loader/docker-compose-ci.yml logs dk-neon-api")
run_subprocess(f"docker-compose -p {project_name} -f ./ci/docker-compose-ci.yml logs dk-neon-api")

stop_containers(project_name)

Expand All @@ -137,7 +137,7 @@ def run_tests(github_sha):

def get_solana_container_name(project_name):
data = subprocess.run(
f"docker-compose -p {project_name} -f ./evm_loader/docker-compose-ci.yml ps",
f"docker-compose -p {project_name} -f ./ci/docker-compose-ci.yml ps",
shell=True, capture_output=True, text=True).stdout
click.echo(data)
pattern = rf'{project_name}_solana_[1-9]+'
Expand All @@ -147,7 +147,7 @@ def get_solana_container_name(project_name):


def stop_containers(project_name):
run_subprocess(f"docker-compose -p {project_name} -f ./evm_loader/docker-compose-ci.yml down")
run_subprocess(f"docker-compose -p {project_name} -f ./ci/docker-compose-ci.yml down")


@cli.command(name="trigger_proxy_action")
Expand Down
32 changes: 16 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ FROM ubuntu:20.04 AS contracts
RUN apt-get update && \
DEBIAN_FRONTEND=nontineractive apt-get -y install xxd && \
rm -rf /var/lib/apt/lists/* /var/lib/apt/cache/*
COPY evm_loader/tests/contracts/*.sol /opt/
COPY evm_loader/solidity/*.sol /opt/
COPY tests/contracts/*.sol /opt/
COPY solidity/*.sol /opt/
#COPY evm_loader/tests/test_solidity_precompiles.json /opt/
COPY --from=solc /usr/bin/solc /usr/bin/solc
WORKDIR /opt/
Expand All @@ -51,10 +51,10 @@ RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -y install vim less openssl ca-certificates curl python3 python3-pip parallel && \
rm -rf /var/lib/apt/lists/*

COPY evm_loader/tests/requirements.txt /tmp/
COPY tests/requirements.txt /tmp/
RUN pip3 install -r /tmp/requirements.txt

COPY /evm_loader/solidity/ /opt/contracts/contracts/
#COPY /evm_loader/solidity/ /opt/contracts/contracts/
WORKDIR /opt

COPY --from=solana \
Expand All @@ -80,19 +80,19 @@ COPY --from=evm-loader-builder /opt/neon-evm/evm_loader/target/release/neon-api
COPY --from=solana /usr/bin/spl-token /opt/spl-token
COPY --from=contracts /opt/ /opt/solidity/
COPY --from=contracts /usr/bin/solc /usr/bin/solc
COPY evm_loader/wait-for-solana.sh \
evm_loader/wait-for-neon.sh \
evm_loader/deploy-evm.sh \
evm_loader/deploy-test.sh \
evm_loader/create-test-accounts.sh \
evm_loader/evm_loader-keypair.json \
COPY ci/wait-for-solana.sh \
ci/wait-for-neon.sh \
ci/deploy-evm.sh \
ci/deploy-test.sh \
ci/create-test-accounts.sh \
ci/evm_loader-keypair.json \
/opt/

COPY evm_loader/operator-keypairs/ /opt/operator-keypairs
COPY evm_loader/tests /opt/tests
COPY evm_loader/operator-keypairs/id.json /root/.config/solana/id.json
COPY evm_loader/operator-keypairs/id2.json /root/.config/solana/id2.json
COPY evm_loader/keys/ /opt/keys
COPY ci/operator-keypairs/ /opt/operator-keypairs
COPY tests /opt/tests
COPY ci/operator-keypairs/id.json /root/.config/solana/id.json
COPY ci/operator-keypairs/id2.json /root/.config/solana/id2.json
COPY ci/keys/ /opt/keys

ENV CONTRACTS_DIR=/opt/solidity/
#ENV CONTRACTS_DIR=/opt/solidity/
ENV PATH=/opt/solana/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit d6ee3a7

Please sign in to comment.