forked from briancappello/flask-unchained
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
41 lines (34 loc) · 995 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
---
# FIXME-travis-postgres: see https://github.com/travis-ci/travis-ci/issues/8537
dist: trusty
env:
global:
- PGPORT=5433 # FIXME-travis-postgres (rm this line)
- TRAVIS=True
- CI=True
language: python
python:
- 3.6
services:
- postgresql
# FIXME-travis-postgres (hopefully delete the entire addons block)
addons:
postgresql: "10"
apt:
packages:
- postgresql-10
- postgresql-client-10
before_install:
- sudo apt-get update -q
- sudo apt-get install postfix
# FIXME-travis-postgres (rm next 2 lines)
- sudo sed -i -e '/local.*peer/s/postgres/all/' -e 's/peer\|md5/trust/g' /etc/postgresql/*/main/pg_hba.conf
- sudo service postgresql restart
install:
- pip install tox-travis
before_script:
- psql -c "CREATE DATABASE flask_test;" -U postgres
- psql -c "CREATE USER flask_test WITH PASSWORD 'flask_test';" -U postgres
- psql -c "GRANT ALL PRIVILEGES ON DATABASE flask_test TO flask_test;" -U postgres
script:
- tox -c .travis.tox.ini