Skip to content

Add RTDB-emulator-based integration testing. #316

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 1, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 17 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,20 @@ python:
- "3.5"
- "3.6"
- "pypy3.5"
# command to install dependencies
install: "pip install -r requirements.txt"
before_script:
- export PY_VERSION=`python -c 'import sys; print sys.version_info.major'`
- if [[ "$PY_VERSION" == '2' ]]; then ./lint.sh all; fi
# command to run tests
script: pytest

jobs:
include:
- name: "Lint"
python: "2.7"
script: ./lint.sh all

before_install:
- nvm install 8 && npm install -g firebase-tools
script:
- pytest
- firebase emulators:exec --only database --project fake-project-id 'pytest integration/test_db.py'
cache:
pip: true
npm: true
directories:
- $HOME/.cache/firebase/emulators