Skip to content

Commit bbfa5e8

Browse files
authored
Add RTDB-emulator-based integration testing. (#316)
* Add RTDB-emulator-based integration testing. * Combine unit tests and integration tests into a single job.
1 parent aecd35e commit bbfa5e8

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

.travis.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,20 @@ python:
55
- "3.5"
66
- "3.6"
77
- "pypy3.5"
8-
# command to install dependencies
9-
install: "pip install -r requirements.txt"
10-
before_script:
11-
- export PY_VERSION=`python -c 'import sys; print sys.version_info.major'`
12-
- if [[ "$PY_VERSION" == '2' ]]; then ./lint.sh all; fi
13-
# command to run tests
14-
script: pytest
8+
9+
jobs:
10+
include:
11+
- name: "Lint"
12+
python: "2.7"
13+
script: ./lint.sh all
14+
15+
before_install:
16+
- nvm install 8 && npm install -g firebase-tools
17+
script:
18+
- pytest
19+
- firebase emulators:exec --only database --project fake-project-id 'pytest integration/test_db.py'
20+
cache:
21+
pip: true
22+
npm: true
23+
directories:
24+
- $HOME/.cache/firebase/emulators

0 commit comments

Comments
 (0)