forked from web2py/pydal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
77 lines (63 loc) · 1.99 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
language: python
sudo: required
cache: pip
python:
- '2.7'
- 'pypy'
- '3.4'
- '3.5'
- '3.6'
install:
- pip install tox>=1.8
env:
global:
- PIP_DOWNLOAD_CACHE=$HOME/.pip-cache
matrix:
- ADAPTER=sqlite
- ADAPTER=mysql
- ADAPTER=postgres
- ADAPTER=postgresPG8000
- ADAPTER=postgres3
- ADAPTER=postgres3PG8000
- ADAPTER=google
- ADAPTER=mongo
matrix:
exclude:
- python: 'pypy'
env: ADAPTER=postgres
- python: 'pypy'
env: ADAPTER=postgres3
- python: 'pypy'
env: ADAPTER=google
- python: '3.4'
env: ADAPTER=google
- python: '3.5'
env: ADAPTER=google
- python: '3.6'
env: ADAPTER=google
before_script:
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install codecov; fi
- if [[ $ADAPTER == mongo ]]; then sleep 15; fi;
- if [[ $ADAPTER == mysql ]]; then mysql -e 'create database pydal;'; fi
- if [[ $ADAPTER == postgres* ]]; then psql -c 'create database pydal;' -U postgres; fi
- if [[ $ADAPTER == postgres* ]]; then psql -c 'create extension postgis;' -U postgres -d pydal; fi
- if [[ $ADAPTER == postgres* ]]; then psql -c 'SHOW SERVER_VERSION' -U postgres; fi
# Install last sdk for app engine (update only whenever a new release is available)
- if [[ $ADAPTER == google ]]; then wget https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.50.zip -nv; fi
- if [[ $ADAPTER == google ]]; then unzip -q google_appengine_1.9.50.zip; fi
- if [[ $ADAPTER == google ]]; then mv -f ./google_appengine/google ./google; fi
script:
- if [[ $TRAVIS_PYTHON_VERSION != "2.7" ]]; then tox -e $(echo py$TRAVIS_PYTHON_VERSION | tr -d . | sed -e 's/pypypy/pypy/')-$ADAPTER; fi
- if [[ $TRAVIS_PYTHON_VERSION == "2.7" ]]; then tox -e coverage-$ADAPTER; fi
after_success:
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then codecov; fi
notifications:
email: true
services:
- mongodb
- memcached
addons:
postgresql: "9.4"
apt:
packages:
- postgresql-9.4-postgis-2.3