Skip to content

Commit

Permalink
Clean-up bridge launching in CI (#3047)
Browse files Browse the repository at this point in the history
* Simplfy bridge scripts

* update

* update
  • Loading branch information
Kailai-Wang authored Sep 6, 2024
1 parent 82fe52a commit bbaa61e
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 26 deletions.
6 changes: 3 additions & 3 deletions .github/file-filter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ parachain_src: &parachain_src
parachain_test: &parachain_test
- 'ts-tests/**'
- 'docker/**'
- 'scripts/build-bridge-docker.sh'
- 'scripts/launch-local-docker.sh'
- 'scripts/launch-local-bridge-docker.sh'
- 'scripts/build-bridge.sh'
- 'scripts/launch-network.sh'
- 'scripts/launch-bridge.sh'

coverage_src: &coverage_src
- *parachain_src
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tags.lock
recipe.json
rococo-fork.json

gethdata
**/gethdata/

*.patch
/log
Expand Down
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ launch-network-rococo:
launch-network-litentry:
@./scripts/launch-network.sh litentry

.PHONY: launch-docker-bridge
launch-docker-bridge:
@./scripts/launch-local-bridge-docker.sh

# run tests

.PHONY: test-cargo-all ## cargo test --all
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ROOTDIR=$(git rev-parse --show-toplevel)

if [[ "$(docker image inspect litentry/chainbridge:latest 2>/dev/null)" == "[]" ]]; then
echo "litentry/chainbridge:latest image not found..."
${ROOTDIR}/scripts/build-bridge-docker.sh
${ROOTDIR}/scripts/build-bridge.sh
fi

echo "------------------------------------------------------------"
Expand Down
12 changes: 0 additions & 12 deletions scripts/launch-local-bridge-binary.sh

This file was deleted.

10 changes: 5 additions & 5 deletions scripts/run-ts-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ LITENTRY_PARACHAIN_DIR=${LITENTRY_PARACHAIN_DIR:-"/tmp/parachain_dev"}

[ -f .env ] || echo "NODE_ENV=ci" >.env
pnpm install
pnpm run test-filter 2>&1 | tee "$LITENTRY_PARACHAIN_DIR/parachain_ci_test.log"
pnpm run test-filter 2>&1 | tee -a "$LITENTRY_PARACHAIN_DIR/parachain_ci_test.log"

if $bridge; then
$ROOTDIR/scripts/launch-local-bridge-docker.sh
$ROOTDIR/scripts/launch-bridge.sh
pnpm run test-bridge 2>&1 | tee -a "$LITENTRY_PARACHAIN_DIR/parachain_ci_test.log"
fi

if $evm; then
pnpm run test-evm-transfer 2>&1 | tee "$LITENTRY_PARACHAIN_DIR/parachain_ci_test.log"
pnpm run test-evm-contract 2>&1 | tee "$LITENTRY_PARACHAIN_DIR/parachain_ci_test.log"
pnpm run test-precompile-contract 2>&1 | tee "$LITENTRY_PARACHAIN_DIR/parachain_ci_test.log"
pnpm run test-evm-transfer 2>&1 | tee -a "$LITENTRY_PARACHAIN_DIR/parachain_ci_test.log"
pnpm run test-evm-contract 2>&1 | tee -a "$LITENTRY_PARACHAIN_DIR/parachain_ci_test.log"
pnpm run test-precompile-contract 2>&1 | tee -a "$LITENTRY_PARACHAIN_DIR/parachain_ci_test.log"
fi

0 comments on commit bbaa61e

Please sign in to comment.