summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 76ae86ad7958596ed089d2d94a14ed6527773e40 (plain)
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
language: python
python:
  - "2.7"
  - "3.3"
  - "3.4"
  - "3.5"
  - "3.6"

install: 
  - pip install . docutils pytest mock codecov==1.5.1 behave pexpect==3.3
  - pip install git+https://github.com/hayd/pep8radius.git

script:
  - set -e
  - coverage run --source pgcli -m py.test
  - cd tests
  - behave
  - cd ..
  # check for changelog ReST compliance
  - rst2html.py --halt=warning changelog.rst >/dev/null
  # check for pep8 errors, only looking at branch vs master. If there are errors, show diff and return an error code.
  - pep8radius master --docformatter --diff --error-status
  - set +e

after_success:
  - coverage combine
  - codecov

notifications:
  webhooks:
    urls:
      - YOUR_WEBHOOK_URL
    on_success: change  # options: [always|never|change] default: always
    on_failure: always  # options: [always|never|change] default: always
    on_start: false     # default: false

services:
  - postgresql

addons:
  postgresql: "9.3"