forked from passportxyz/passport
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(database-client): set up initial ceramic integration testing in…
… docker-compose
- Loading branch information
Showing
3 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
# === preliminary installs === | ||
# TODO: Run installs on yarn | ||
yarn global add lerna | ||
cd dpopp # TODO - maybe not needed? | ||
lerna bootstrap # TODO - figure out how to speed this up if run in docker | ||
|
||
# === start up ceramic in background === | ||
# TODO - how to kill this ceramic process at the end? | ||
echo "Starting up Ceramic..." | ||
(yarn workspace @dpopp/schemas ceramic &) | grep -q "Ceramic API running on" | ||
|
||
# TODO alternatively figure out how to save the PID and kill at the end | ||
# CERAMIC_PID = $(ceramic daemon) | ||
# echo $CERAMIC_PID | ||
|
||
# TODO - not needed once we publish + persist our schemas to ceramic testnet | ||
# === create & publish model to ceramic === | ||
yarn workspace @dpopp/schemas create-model | ||
yarn workspace @dpopp/schemas publish-model | ||
|
||
# === run ceramic integration tests === | ||
yarn workspace @dpopp/database-client test:integration # && kill -9 $CERAMIC_PID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: "3.9" | ||
services: | ||
# ceramic-daemon: | ||
# image: ceramicnetwork/go-ipfs-daemon:latest | ||
# ports: | ||
# - "5001:5001" | ||
# - "8011:8011" | ||
ceramic-integration-test: | ||
image: node:16 | ||
volumes: | ||
- ./:/dpopp | ||
- ./node_modules:/dpopp/node_modules | ||
entrypoint: | ||
["sh", "/dpopp/database-client/integration-tests/run-ceramic-tests.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters