Skip to content

Commit f13ddbe

Browse files
committed
Try out firepit!
1 parent 74e06d2 commit f13ddbe

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ jobs:
1616
script: ./lint.sh all
1717

1818
before_install:
19-
- if [[ "$TEST_TYPE" == "integration" ]]; then nvm install 8 && npm install -g firebase-tools; fi
19+
- export FIREPIT=$HOME/.cache/firepit/firebase; [[ "$TEST_TYPE" != "integration" || -x "$FIREPIT" ]] || (curl -L https://github.com/abeisgoat/firebase-tools-release-playground/releases/download/v7.2.2/firebase-tools-headless-linux > "$FIREPIT" && chmod +x -- "$FIREPIT")
2020
script:
2121
- if [[ "$TEST_TYPE" == "unit" ]]; then pytest; fi
22-
- if [[ "$TEST_TYPE" == "integration" ]]; then firebase emulators:exec --only database --project fake-project-id 'pytest integration/test_db.py'; fi
22+
- if [[ "$TEST_TYPE" == "integration" ]]; then "$FIREPIT" emulators:exec --only database --project fake-project-id 'pytest integration/test_db.py'; fi
2323
cache:
2424
pip: true
2525
npm: true
2626
directories:
2727
- $HOME/.cache/firebase/emulators
28+
- $HOME/.cache/firepit

0 commit comments

Comments
 (0)