forked from mapbox/mapbox-sdk-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (31 loc) · 847 Bytes
/
.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
31
sudo: false
language: python
python:
- '3.4'
- '3.5'
- '3.6'
- '3.7'
- '3.8'
- pypy
cache:
directories:
- $HOME/.pip-cache/
install:
- pip install -U pip --cache-dir $HOME/.pip-cache
- pip install pytest-cov~=2.6 --cache-dir $HOME/.pip-cache
- pip install -e .[test] --cache-dir $HOME/.pip-cache
before_script:
- pip install flake8 # 127 == GitHub editor width
- flake8 . --count --max-line-length=127 --statistics --exit-zero
script:
- python -m pytest --cov mapbox --cov-report term-missing --cov-branch tests/*.py
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 && ! -z "$MAPBOX_ACCESS_TOKEN" ]]; then py.test --doctest-glob='*.md' docs/*.md; fi
after_success:
- coveralls
deploy:
on:
tags: true
condition: "$TRAVIS_PYTHON_VERSION = 3.6"
provider: pypi
user: mapboxci
distributions: "sdist bdist_wheel"