-
Notifications
You must be signed in to change notification settings - Fork 350
Expand file tree
/
Copy path.travis.yml
More file actions
28 lines (26 loc) · 825 Bytes
/
.travis.yml
File metadata and controls
28 lines (26 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "pypy3.5"
env:
- TEST_TYPE=unit
- TEST_TYPE=integration
jobs:
include:
- name: "Lint"
python: "2.7"
script: ./lint.sh all
before_install:
- 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")
script:
- if [[ "$TEST_TYPE" == "unit" ]]; then pytest; fi
- if [[ "$TEST_TYPE" == "integration" ]]; then "$FIREPIT" emulators:exec --only database --project fake-project-id 'pytest integration/test_db.py'; fi
cache:
pip: true
npm: true
directories:
- $HOME/.cache/firebase/emulators
- $HOME/.cache/firepit