mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-04 06:32:59 +00:00
scripts: run the contract cases from the submodule
This commit is contained in:
1 parent
bc44017d7d
commit
4f07245d65
2 files changed
+3
-3
No files matched your search
@@ -1022,10 +1022,10 @@ the service or the code server exits before it answers.
|
||||
|
||||
```
|
||||
cabal build exe:simplex-store-service
|
||||
WEBAPP_DIR=../simplex.domains/webapp ENS_CONTRACTS_DIR=<ens-contracts> ANVIL=<anvil> \
|
||||
scripts/store-service/names-contract-run.sh
|
||||
ENS_CONTRACTS_DIR=<ens-contracts> ANVIL=<anvil> scripts/store-service/names-contract-run.sh
|
||||
```
|
||||
|
||||
- `WEBAPP_DIR`: the names webapp (default: the `apps/simplex-domains` submodule's `webapp/`).
|
||||
- `STORE_SERVICE_BIN`: the service binary (default: `cabal list-bin exe:simplex-store-service`).
|
||||
- `SERVICE_PORT`, `CODES_PORT`: the service's and the code server's ports (8180 and 8199).
|
||||
- Arguments, if given, are passed to `playwright test` in place of the default cases' title filter.
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
set -euo pipefail
|
||||
shopt -s inherit_errexit
|
||||
|
||||
: "${WEBAPP_DIR:?set WEBAPP_DIR to the names webapp (simplex.domains/webapp)}"
|
||||
WEBAPP_DIR="${WEBAPP_DIR:-$(cd "$(dirname "$0")/../.." && pwd)/apps/simplex-domains/webapp}"
|
||||
: "${ENS_CONTRACTS_DIR:?set ENS_CONTRACTS_DIR to a compiled ens-contracts checkout, as for the webapp dev/start.sh}"
|
||||
ANVIL="${ANVIL:-anvil}"
|
||||
SERVICE_PORT="${SERVICE_PORT:-8180}"
|
||||
|
||||
Reference in new issue
Block a user