forked from chtd/psycopg2cffi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (30 loc) · 827 Bytes
/
.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
language: python
sudo: false
addons:
postgresql: "9.4"
before_script:
- "psql -c 'create database psycopg2_test;' -U postgres"
- "psql psycopg2_test -c 'create extension hstore;' -U postgres"
env:
- PSYCOPG2_TESTDB_USER=postgres
install: python setup.py install
script: python setup.py test
after_script:
- "psql -c 'create database psycopg2_cffi_test_db;' -U postgres"
- git clone https://github.com/chtd/psycopg2-benchmarks.git --depth 1
- pip install -r psycopg2-benchmarks/django_bench/requirements.txt
- cd psycopg2-benchmarks/django_bench/ && ./bench 1000 5
matrix:
fast_finish: true
include:
- python: "2.7"
- python: "3.5"
- python: "3.6"
- python: "pypy"
- python: "pypy3"
- python: 3.7
dist: xenial
sudo: true
- python: 3.8
dist: xenial
sudo: true