forked from mapbox/rio-mucho
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (49 loc) · 1.41 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
language: python
sudo: false
cache:
# Apparently if you override the install command that silently disables the
# cache: pip support. This is less than ideal and I've opened up
# travis-ci/travis-ci#3239 to hopefully get that addressed. For now I'll
# manually add the pip cache directory to the build cache.
directories:
- ~/.cache/pip
env:
global:
# These two environment variables could be set by Travis itself, or Travis
# could configure itself in /etc/, ~/, or inside of the virtual
# environments. In any case if these two values get configured then end
# users only need to enable the pip cache and manually run pip wheel before
# running pip install.
- PIP_WHEEL_DIR=$HOME/.cache/pip/wheels
- PIP_FIND_LINKS=file://$HOME/.cache/pip/wheels
python:
- "2.7"
- "3.4"
addons:
apt:
packages:
- libgdal1h
- gdal-bin
- libgdal-dev
- libatlas-dev
- libatlas-base-dev
- liblapack-dev
- gfortran
- libgmp-dev
- libmpfr-dev
cache:
directories:
- $HOME/.pip-cache/
- $HOME/wheelhouse
before_install:
- pip install -U pip
- pip install wheel
install:
- "pip wheel -r requirements.txt"
# Actually install our dependencies now, this will pull from the directory
# that the first command placed the Wheels into.
- "pip install -e .[test]"
script:
- py.test --cov riomucho --cov-report term-missing
after_success:
- coveralls