-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
41 lines (41 loc) · 1003 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
sudo: true
language: python
dist: trusty
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
env:
global:
- PGPORT=5433
- EXPLICATES_SETTINGS="../settings_test.py"
addons:
postgresql: "10"
apt:
packages:
- postgresql-10
- postgresql-client-10
install:
- pip install -U pip
- pip install -r requirements.txt
before_script:
- sudo -u postgres psql -c "CREATE USER rtester WITH createdb LOGIN PASSWORD 'rtester';" -U postgres
- sudo -u postgres psql -c "CREATE DATABASE explicates_test OWNER rtester ENCODING 'UTF-8' LC_COLLATE 'en_US.UTF-8' LC_CTYPE 'en_US.UTF-8' TEMPLATE template0;" -U postgres
script:
- pycodestyle
- alembic -c alembictest.ini stamp head
- alembic -c alembictest.ini upgrade head
- nosetests test/
- mkdocs build --clean
after_success:
- pip install coveralls
- coveralls
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: site/
on:
branch: master
python: "3.6" # only deploy docs once