Skip to content

Commit 62783fa

Browse files
committed
Remove Firestore emulator set-up in CircleCI
1 parent 1d8c819 commit 62783fa

File tree

1 file changed

+3
-25
lines changed

1 file changed

+3
-25
lines changed

.circleci/config.yml

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,9 @@ jobs:
2020
# Download and cache dependencies
2121
- restore_cache:
2222
keys:
23-
- v2-dependencies-{{ checksum "requirements.txt" }}
23+
- v3-dependencies-{{ checksum "requirements.txt" }}
2424
# fallback to using the latest cache if no exact match is found
25-
- v2-dependencies-
26-
27-
- run:
28-
name: Install Firestore emulator
29-
command: |
30-
# Add the Cloud SDK distribution URI as a package source
31-
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
32-
33-
# Import the Google Cloud Platform public key
34-
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
35-
36-
# Enable `add-apt-repository` command
37-
sudo apt-get --yes install software-properties-common
38-
39-
# Enable installation of OpenJDK, needed by gcloud
40-
sudo add-apt-repository --yes ppa:openjdk-r/ppa
41-
42-
# Update the package list and install the Cloud SDK
43-
sudo apt-get --yes update && sudo apt-get --yes install google-cloud-sdk
44-
sudo apt-get --yes install google-cloud-sdk google-cloud-sdk-firestore-emulator
25+
- v3-dependencies-
4526

4627
- run:
4728
name: Install Python dependencies
@@ -54,14 +35,11 @@ jobs:
5435
- save_cache:
5536
paths:
5637
- ./venv
57-
key: v2-dependencies-{{ checksum "requirements.txt" }}
38+
key: v3-dependencies-{{ checksum "requirements.txt" }}
5839

5940
- run:
6041
name: Run tests
6142
command: |
62-
env
63-
gcloud beta emulators firestore start --host-port localhost:8081 &
64-
export FIRESTORE_EMULATOR_HOST=localhost:8081
6543
. venv/bin/activate
6644
cd tests
6745
pytest --cov-report=xml --cov=../ingest/

0 commit comments

Comments
 (0)