forked from web2py/pydal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (56 loc) · 1.93 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
language: python
sudo: false
cache:
directories:
- $HOME/.pip-cache/
python:
- '2.6'
- '2.7'
- 'pypy'
install:
- pip install --download-cache $HOME/.pip-cache tox>=1.8
env:
global:
- PIP_DOWNLOAD_CACHE=$HOME/.pip-cache
matrix:
- ADAPTER=sqlite
- ADAPTER=mysql
- ADAPTER=postgres
- ADAPTER=postgresPG8000
- ADAPTER=postgres2
- ADAPTER=google
- ADAPTER=mongo
- ADAPTER=imap
matrix:
exclude:
- python: 'pypy'
env: ADAPTER=postgres
- python: 'pypy'
env: ADAPTER=postgres2
- python: 'pypy'
env: ADAPTER=google
- python: '2.6'
env: ADAPTER=google
before_script:
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install --download-cache $HOME/.pip-cache python-coveralls; 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.18.zip -nv; fi
- if [[ $ADAPTER == google ]]; then unzip -q google_appengine_1.9.18.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 coveralls; fi
notifications:
email: true
services:
- mongodb
- memcached
addons:
postgresql: "9.4"