Skip to content

Commit

Permalink
test: don't use special branch in build (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Gurov committed Jan 29, 2021
1 parent 7ce685d commit a0389d0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions .kokoro/build.sh
Expand Up @@ -55,10 +55,9 @@ export RUNNING_SPANNER_BACKEND_TESTS=1
export USE_SPANNER_EMULATOR=0

pip3 install .
pip3 install -e 'git+https://github.com/q-logic/python-spanner-django.git@dj_tests_against_emulator#egg=django-google-spanner'
# Create a unique DJANGO_TESTS_DIR per worker to avoid
# any clashes with configured tests by other workers.
export DJANGO_TESTS_DIR="django_tests_$DJANGO_WORKER_INDEX"
export DJANGO_TESTS_DIR="django_tests_dir"
mkdir -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

# Install dependencies for Django tests.
Expand Down
1 change: 0 additions & 1 deletion django_test_suite.sh
Expand Up @@ -18,7 +18,6 @@ mkdir -p $DJANGO_TESTS_DIR
if [ $SPANNER_EMULATOR_HOST != 0 ]
then
pip3 install .
pip3 install -e 'git+https://github.com/q-logic/python-spanner-django.git@dj_tests_against_emulator#egg=django-google-spanner'
git clone --depth 1 --single-branch --branch spanner-2.2.x https://github.com/timgraham/django.git $DJANGO_TESTS_DIR/django
fi

Expand Down

0 comments on commit a0389d0

Please sign in to comment.