forked from target/goalert
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Procfile.cypress.prod
20 lines (12 loc) · 1.4 KB
/
Procfile.cypress.prod
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
build: while true; do make -qs bin/goalert.cover BUNDLE=1 >/dev/null || make bin/goalert.cover BUNDLE=1 || (echo '\033[0;31mBuild Failure'; sleep 3); sleep 0.1; done
@watch-file=./bin/goalert.cover
goalert: go run ./devtools/waitfor postgres://[email protected]:5433 && go run ./devtools/procwrap -test=127.0.0.1:3042 bin/goalert.cover -l=127.0.0.1:3042 --db-url=postgres://[email protected]:5433 --slack-base-url=http://127.0.0.1:3040/slack --log-errors-only --public-url=http://127.0.0.1:3040$HTTP_PREFIX
slack: go run ./devtools/mockslack/cmd/mockslack -client-id=000000000000.000000000000 -client-secret=00000000000000000000000000000000 -access-token=xoxp-000000000000-000000000000-000000000000-00000000000000000000000000000000 -prefix=/slack -single-user=bob -addr=127.0.0.1:3046
proxy: go run ./devtools/simpleproxy -addr=127.0.0.1:3040 /slack/=http://127.0.0.1:3046 http://127.0.0.1:3042
@oneshot
cypress: go run ./devtools/waitfor http://127.0.0.1:3042 && CYPRESS_DB_URL=postgres://[email protected]:5433 yarn cypress $CY_ACTION --config baseUrl=http://127.0.0.1:3040$HTTP_PREFIX
db: $CONTAINER_TOOL rm -f smoketest-postgres || true; $CONTAINER_TOOL run -it --rm --name smoketest-postgres -p5433:5432 -e=POSTGRES_HOST_AUTH_METHOD=trust postgres:13-alpine
@watch-file=./web/src/esbuild.config.js
ui: yarn run esbuild --watch --prod
@watch-file=./web/src/esbuild.cypress.js
build-cy: yarn run esbuild-cy --watch