File tree Expand file tree Collapse file tree 1 file changed +20
-7
lines changed Expand file tree Collapse file tree 1 file changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,23 @@ python:
5
5
- " 3.5"
6
6
- " 3.6"
7
7
- " 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
+ env :
9
+ - TEST_TYPE=unit
10
+ - TEST_TYPE=integration
11
+
12
+ jobs :
13
+ include :
14
+ - name : " Lint"
15
+ python : " 2.7"
16
+ script : ./lint.sh all
17
+
18
+ before_install :
19
+ - if [[ "$TEST_TYPE" == "integration" ]]; then nvm install 8 && npm install -g firebase-tools; fi
20
+ script :
21
+ - 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
23
+ cache :
24
+ pip : true
25
+ npm : true
26
+ directories :
27
+ - $HOME/.cache/firebase/emulators
You can’t perform that action at this time.
0 commit comments