forked from KMarkert/cartoee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (30 loc) · 1.03 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
env:
global:
# Set defaults to avoid repeating in most cases
- PYTHON_VERSION=$TRAVIS_PYTHON_VERSION
- NUMPY_VERSION=stable
- MAIN_CMD='python setup.py'
# 'krb5' is added as a workaround for an issue with gdal
# see: https://github.com/conda-forge/gdal-feedstock/issues/205
- CONDA_DEPENDENCIES='Cython sphinx cartopy matplotlib sphinx_rtd_theme ipython'
- PIP_DEPENDENCIES='sphinxcontrib-napoleon nbsphinx earthengine-api google-api-python-client oauth2client coverage flake8'
- SETUP_XVFB=False
- EVENT_TYPE='push pull_request'
- SETUP_CMD='test'
- CONDA_CHANNELS='conda-forge'
matrix:
include:
- env: PYTHON_VERSION=3.6
os: linux
- env: PYTHON_VERSION=3.6
os: osx
- env: PYTHON_VERSION=2.7
os: linux
install:
- git clone --depth 1 git://github.com/astropy/ci-helpers.git
- source ci-helpers/travis/setup_conda.sh
- pip install .
script:
- coverage report -m # Generate test coverage report.
- flake8 --max-line-length=115 cartoee # Enforce code style (but relax line length limit a bit).