forked from web2py/pydal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
123 lines (110 loc) · 3.33 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
language: python
sudo: required
dist: bionic
cache: pip
python:
- '2.7'
# - 'pypy'
# - 'pypy3'
- '3.5'
- '3.6'
- '3.7'
- '3.8'
before_install:
- if [ "$ADAPTER" = 'oracle' ]; then
wget 'https://github.com/cbandy/travis-oracle/archive/v2.0.2.tar.gz' ;
mkdir -p .travis/oracle ;
tar x -C .travis/oracle --strip-components=1 -f v2.0.2.tar.gz ;
bash -x .travis/oracle/download.sh ;
bash -x .travis/oracle/install.sh ;
pip install cx_Oracle ;
echo -e "CREATE USER TEST IDENTIFIED BY TEST ;\n GRANT CONNECT, RESOURCE TO TEST ;\n" | "$ORACLE_HOME/bin/sqlplus" -L -S / AS SYSDBA ;
fi
install:
- pip install tox>=1.8
env:
global:
- PIP_DOWNLOAD_CACHE=$HOME/.pip-cache
- ORACLE_COOKIE=sqldev
- ORACLE_FILE=oracle11g/xe/oracle-xe-11.2.0-1.0.x86_64.rpm.zip
- ORACLE_BASE=/u01/app/oracle
- ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
- ORACLE_SID=XE
- PATH=$PATH:$ORACLE_HOME/bin
- LD_LIBRARY_PATH=$ORACLE_HOME/lib
- NLS_LANG=.UTF8
matrix:
- ADAPTER=sqlite
- ADAPTER=mysql
- ADAPTER=postgres
- ADAPTER=postgres3
- ADAPTER=google
- ADAPTER=mongo
- ADAPTER=oracle
matrix:
exclude:
- python: '2.7'
env: ADAPTER=oracle
# - python: 'pypy'
# env: ADAPTER=postgres
# - python: 'pypy'
# env: ADAPTER=postgres3
# - python: 'pypy'
# env: ADAPTER=google
# - python: 'pypy'
# env: ADAPTER=oracle
# - python: 'pypy'
# env: ADAPTER=mongo
# - python: 'pypy3'
# env: ADAPTER=google
# - python: 'pypy3'
# env: ADAPTER=postgres
# - python: 'pypy3'
# env: ADAPTER=postgres3
# - python: 'pypy3'
# env: ADAPTER=oracle
# - python: 'pypy3'
# env: ADAPTER=mongo
- python: '3.5'
env: ADAPTER=google
- python: '3.6'
env: ADAPTER=google
- python: '3.7'
env: ADAPTER=google
- python: '3.8'
env: ADAPTER=google
- python: '3.5'
env: ADAPTER=oracle
- python: '3.6'
env: ADAPTER=oracle
- python: '3.7'
env: ADAPTER=oracle
- python: '3.8'
env: ADAPTER=oracle
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
sudo apt update;
sudo apt install -Y postgis postgresql-11-postgis-3;
psql -c 'create database pydal;' -U postgres;
psql -c 'create extension postgis;' -U postgres -d pydal;
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
- mysql
- postgresql