forked from coleifer/peewee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (56 loc) · 1.42 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
language: python
python:
- 2.7
- 3.4
- 3.5
- 3.6
dist: trusty
env:
- PEEWEE_TEST_BACKEND=sqlite
- PEEWEE_TEST_BACKEND=postgresql
- PEEWEE_TEST_BACKEND=mysql
matrix:
include:
- python: 3.7
dist: xenial
sudo: true
env: PEEWEE_TEST_BACKEND=sqlite
- python: 3.7
dist: xenial
sudo: true
env: PEEWEE_TEST_BACKEND=postgresql
- python: 3.7
dist: xenial
sudo: true
env: PEEWEE_TEST_BACKEND=mysql
- python: 3.8-dev
dist: xenial
sudo: true
- python: 3.7
dist: xenial
sudo: true
env:
- PEEWEE_TEST_BUILD_SQLITE=1
- PEEWEE_CLOSURE_EXTENSION=/usr/local/lib/closure.so
- LSM_EXTENSION=/usr/local/lib/lsm.so
before_install:
- sudo apt-get install -y tcl-dev
- ./.travis_deps.sh
- sudo ldconfig
script: "python runtests.py -v2"
addons:
postgresql: "9.6"
mariadb: "10.3"
services:
- postgresql
- mariadb
install: "pip install psycopg2-binary Cython pymysql apsw mysql-connector"
before_script:
- python setup.py build_ext -i
- psql -c 'drop database if exists peewee_test;' -U postgres
- psql -c 'create database peewee_test;' -U postgres
- psql peewee_test -c 'create extension hstore;' -U postgres
- mysql -e 'drop database if exists peewee_test;'
- mysql -e 'create database peewee_test;'
- mysql -e 'grant all on *.* to travis@localhost;'
script: "python runtests.py"