-
Notifications
You must be signed in to change notification settings - Fork 146
/
.travis.yml
30 lines (30 loc) · 1.08 KB
/
.travis.yml
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
29
30
language: python
cache:
directories:
- node_modules
install:
- "if [[ \"$GROUP\" == js ]] ; then npm -v ; fi"
- "if [[ \"$GROUP\" == js ]] ; then npm install --prefix js/ ; fi"
- "if [[ \"$GROUP\" == python ]] ; then pip install -U pip ; fi"
- "if [[ \"$GROUP\" == python ]] ; then pip install -r requirements.txt ; fi"
- "if [[ \"$GROUP\" == python ]] ; then pip install -r test-requirements.txt ; fi"
- "if [[ \"$GROUP\" == js ]] ; then npm -v ; fi"
- "if [[ \"$GROUP\" == docs ]] ; then npm install --prefix js/ ; fi"
- "if [[ \"$GROUP\" == docs ]] ; then pip install sphinx . ; fi"
script:
- "if [[ \"$GROUP\" == js ]] ; then npm run --prefix js/ lint ; fi"
- "if [[ \"$GROUP\" == python ]] ; then flake8 gmaps ; fi"
- "if [[ \"$GROUP\" == python ]] ; then py.test ; fi"
- "if [[ \"$GROUP\" == docs ]] ; then SPHINXOPTS=-W make -e -C docs/ dummy ; fi"
matrix:
include:
- python: 3.6
env: GROUP=python
- python: 3.5
env: GROUP=python
- python: 2.7
env: GROUP=python
- python: 3.6
env: GROUP=js
- python: 3.6
env: GROUP=docs