@@ -20,13 +20,8 @@ cd github/python-spanner-django
2020# Disable buffering, so that the logs stream through.
2121export PYTHONUNBUFFERED=1
2222
23- # Debug: show build environment
24- env | grep KOKORO
25-
2623# Setup service account credentials.
2724export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR} /service-account.json
28-
29- # Setup project id.
3025export PROJECT_ID=$( cat " ${KOKORO_GFILE_DIR} /project-id.json" )
3126export GOOGLE_CLOUD_PROJECT=$( cat " ${KOKORO_GFILE_DIR} /project-id.json" )
3227
4540 python3.6 -m nox
4641fi
4742
48- # Export essential environment variables for Django tests.
4943export RUNNING_SPANNER_BACKEND_TESTS=1
5044
51- # The emulator is currently unusable for our tests because:
52- # a) It doesn't support INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE
53- # b) Cannot accept parameters whose types aren't known, so can't be used for
54- # Python and other dynamic languages.
55- export USE_SPANNER_EMULATOR=0
56-
5745pip3 install .
58- # Create a unique DJANGO_TESTS_DIR per worker to avoid
59- # any clashes with configured tests by other workers.
6046export DJANGO_TESTS_DIR=" django_tests_dir"
6147mkdir -p $DJANGO_TESTS_DIR && git clone --depth 1 --single-branch --branch spanner-2.2.x https://github.com/timgraham/django.git $DJANGO_TESTS_DIR /django
6248
@@ -65,7 +51,6 @@ sudo apt-get update
6551apt-get install -y libffi-dev libjpeg-dev zlib1g-dev libmemcached-dev
6652cd $DJANGO_TESTS_DIR /django && pip3 install -e . && pip3 install -r tests/requirements/py3.txt; cd ../../
6753
68- # Not using the emulator!
6954# Hardcode the max number of workers since Spanner has a very low
7055# QPS for administrative RPCs of 5QPS (averaged every 100 seconds)
7156if [[ $KOKORO_JOB_NAME == * " continuous" * ]]
0 commit comments