forked from Kinto/kinto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (44 loc) · 965 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
dist: trusty
language: python
python: 3.5
cache: pip
services:
- memcached
addons:
postgresql: "9.5"
env:
- TOX_ENV=py35
- TOX_ENV=py35-raw
- TOX_ENV=flake8
- TOX_ENV=docs
install:
- pip install tox
before_script:
- echo "Pull request ${TRAVIS_PULL_REQUEST}"
- sudo sed -i "s/fsync/#fsync/" /etc/postgresql/9.5/main/postgresql.conf
- sudo /etc/init.d/postgresql restart
- psql -c "CREATE DATABASE testdb ENCODING 'UTF8' TEMPLATE template0;" -U postgres
- make version-file
script:
- tox -e $TOX_ENV
after_success:
# Report coverage results to coveralls.io
- pip install coveralls
- coveralls
matrix:
include:
- python: 3.6
env:
- TOX_ENV=py36
- python: 3.7
dist: xenial
sudo: true
env:
- TOX_ENV=py37
- env: ENV=functional
before_install:
- make install-dev
- make install-postgres
script:
- make runkinto & sleep 5
- make functional