11
2- build :
2+ build-image :
33 docker build -t local/labelbox-python:test .
44
5+ test-local : build-image
56
6- test-local : build
7-
8- @# if PATH_TO_TEST we asuume you know what you are doing
7+ @# if PATH_TO_TEST we assume you know what you are doing
98 @if [ -z ${PATH_TO_TEST} ]; then \
109 ./scripts/ensure_local_setup.sh; \
1110 fi
@@ -16,29 +15,29 @@ test-local: build
1615 -e LABELBOX_TEST_API_KEY_LOCAL=${LABELBOX_TEST_API_KEY_LOCAL} \
1716 local/labelbox-python:test pytest $(PATH_TO_TEST)
1817
19- test-staging : build
18+ test-staging : build-image
2019 docker run -it -v ${PWD} :/usr/src -w /usr/src \
2120 -e LABELBOX_TEST_ENVIRON=" staging" \
2221 -e DA_GCP_LABELBOX_API_KEY=${DA_GCP_LABELBOX_API_KEY} \
2322 -e LABELBOX_TEST_API_KEY_STAGING=${LABELBOX_TEST_API_KEY_STAGING} \
24- local/labelbox-python:test pytest -n 10 $(PATH_TO_TEST )
23+ local/labelbox-python:test pytest $(PATH_TO_TEST )
2524
26- test-prod : build
25+ test-prod : build-image
2726 docker run -it -v ${PWD} :/usr/src -w /usr/src \
2827 -e LABELBOX_TEST_ENVIRON=" prod" \
2928 -e DA_GCP_LABELBOX_API_KEY=${DA_GCP_LABELBOX_API_KEY} \
3029 -e LABELBOX_TEST_API_KEY_PROD=${LABELBOX_TEST_API_KEY_PROD} \
3130 local/labelbox-python:test pytest $(PATH_TO_TEST )
3231
33- test-onprem : build
32+ test-onprem : build-image
3433 docker run -it -v ${PWD} :/usr/src -w /usr/src \
3534 -e LABELBOX_TEST_ENVIRON=" onprem" \
3635 -e DA_GCP_LABELBOX_API_KEY=${DA_GCP_LABELBOX_API_KEY} \
3736 -e LABELBOX_TEST_API_KEY_ONPREM=${LABELBOX_TEST_API_KEY_ONPREM} \
3837 -e LABELBOX_TEST_ONPREM_HOSTNAME=${LABELBOX_TEST_ONPREM_HOSTNAME} \
3938 local/labelbox-python:test pytest $(PATH_TO_TEST )
4039
41- test-custom : build
40+ test-custom : build-image
4241 docker run -it -v ${PWD} :/usr/src -w /usr/src \
4342 -e LABELBOX_TEST_ENVIRON=" custom" \
4443 -e DA_GCP_LABELBOX_API_KEY=${DA_GCP_LABELBOX_API_KEY} \
0 commit comments