-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
39 lines (39 loc) · 900 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
language: python
python:
- 3.7
addons:
postgresql: '12'
apt:
packages:
- postgresql-12
- postgresql-client-12
services:
- redis-server
- postgresql
env:
global:
- PGVER=12
- PGPORT=5433
- FLASK_ENV=testing
cache:
directories:
- $HOME/.cache/pip
before_install:
- sudo sed -i -e '/local.*peer/s/postgres/all/' -e 's/peer\|md5/trust/g' /etc/postgresql/*/main/pg_hba.conf
- sudo systemctl restart postgresql@12-main
install:
- pip install -U pip wheel
- pip install -r test_requirements.txt
- pip install -r requirements.txt
- npm install casperjs
- make
before_script:
- sudo -- sh -c "echo '127.0.0.1 boxoffice.travis.dev' >> /etc/hosts"
- psql -c 'create database boxoffice_testing;' -U postgres
- flask dbconfig | sudo -u postgres psql boxoffice_testing
script:
- pytest
after_success:
- coveralls
notifications:
email: false