summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 6cb983f3ffec0cd00b1df4eefdb7dd98c2ab71be (plain)
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
language: python

dist: trusty
sudo: false

python:
  - 2.7
  - 3.4
  - 3.5
  - 3.6

addons:
  postgresql: "9.6"

services:
  - mysql
  - postgresql

env:
  matrix:
    - PW_TEST_DB_TYPE=postgres PW_TEST_DB_USER=postgres
    - PW_TEST_DB_TYPE=mysql PW_TEST_DB_USER=root
  global:
    - PW_TEST_DB_PASS=""

before_script:
  - mysql -e 'create database patchwork character set utf8;'
  - psql -c "create database patchwork with ENCODING = 'UTF8';" -U postgres

install:
  - pip install tox-travis

script:
  - tox
  - tox -e coverage

after_success:
  - codecov