Skip to content

Commit 25899d2

Browse files
author
Val Brodsky
committed
Add ephemeral to Makefile
1 parent f3b3171 commit 25899d2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,17 @@ test-custom: build-image
5353
-e LABELBOX_TEST_GRAPHQL_API_ENDPOINT=${LABELBOX_TEST_GRAPHQL_API_ENDPOINT} \
5454
-e LABELBOX_TEST_REST_API_ENDPOINT=${LABELBOX_TEST_REST_API_ENDPOINT} \
5555
local/labelbox-python:test pytest $(PATH_TO_TEST)
56+
57+
test-ephemeral: build-image
58+
59+
@# if PATH_TO_TEST we assume you know what you are doing
60+
@if [ -z ${PATH_TO_TEST} ]; then \
61+
./scripts/ensure_local_setup.sh; \
62+
fi
63+
64+
docker run -it --rm -v ${PWD}:/usr/src -w /usr/src \
65+
-e LABELBOX_TEST_ENVIRON="ephemeral" \
66+
-e DA_GCP_LABELBOX_API_KEY=${DA_GCP_LABELBOX_API_KEY} \
67+
-e LABELBOX_TEST_API_KEY_EPHEMERAL=${LABELBOX_TEST_API_KEY_LOCAL} \
68+
-e FIXTURE_PROFILE=true \
69+
local/labelbox-python:test pytest $(PATH_TO_TEST)

0 commit comments

Comments
 (0)