forked from CCExtractor/Rekognition
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (38 loc) · 1007 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
46
47
48
dist: xenial # required for Python >= 3.7
language: python
sudo: required
services:
- postgresql
addons:
postgresql: "10"
apt:
packages:
- postgresql-10
- postgresql-client-10
env:
global:
- PGPORT=5432
cache:
directories:
- $HOME/.cache/pip
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
python:
- "3.6"
before_install:
- pip3 install --upgrade pip
install:
- pip3 install -r requirements.txt
before_script:
- psql -U postgres -c "CREATE DATABASE pmr"
- psql -U postgres -c "CREATE USER admin WITH PASSWORD 'admin'"
- psql -U postgres -c "ALTER ROLE admin SET client_encoding TO 'utf8'"
- psql -U postgres -c "ALTER ROLE admin SET default_transaction_isolation TO 'read committed'"
- psql -U postgres -c "ALTER ROLE admin SET timezone TO 'UTC'"
- psql -U postgres -c "ALTER USER admin CREATEDB"
- psql -U postgres -c "ALTER DATABASE pmr OWNER TO admin"
script:
- flake8 .
- coverage run cceface/tests.py
after_success:
- coveralls