forked from coleifer/peewee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (61 loc) · 1.82 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
language: python
python:
- 2.7
- 3.4
- 3.5
- 3.6
env:
- PEEWEE_TEST_BACKEND=sqlite
- PEEWEE_TEST_BACKEND=postgresql
- PEEWEE_TEST_BACKEND=mysql
matrix:
include:
- python: 3.7
dist: xenial
env: PEEWEE_TEST_BACKEND=sqlite
- python: 3.7
dist: xenial
env: PEEWEE_TEST_BACKEND=postgresql
- python: 3.7
dist: xenial
env: PEEWEE_TEST_BACKEND=mysql
- python: 3.8-dev
dist: xenial
- python: 3.7
dist: xenial
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"
- python: 3.7
dist: xenial
env:
- PEEWEE_TEST_BACKEND=cockroachdb
before_install:
- wget -qO- https://binaries.cockroachdb.com/cockroach-v19.2.0.linux-amd64.tgz | tar xvz
- ./cockroach-v19.2.0.linux-amd64/cockroach start --insecure --background
- ./cockroach-v19.2.0.linux-amd64/cockroach sql --insecure -e 'create database peewee_test;'
allow_failures:
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 user if exists travis@localhost;'
- mysql -e 'create user travis@localhost;'
- mysql -e 'drop database if exists peewee_test;'
- mysql -e 'create database peewee_test;'
- mysql -e 'grant all on *.* to travis@localhost;' || true
script: "python runtests.py"