1
0
Fork 0
pgcli/.travis.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
1.0 KiB
YAML
Raw Normal View History

2019-03-18 04:11:21 +00:00
dist: xenial
sudo: required
2015-01-05 07:04:39 +00:00
language: python
2019-03-18 04:11:21 +00:00
python:
2017-03-03 06:08:20 +00:00
- "3.6"
2019-03-18 04:11:21 +00:00
- "3.7"
- "3.8"
2015-01-05 07:04:39 +00:00
2018-07-20 02:01:35 +00:00
before_install:
- which python
- which pip
2018-07-20 02:41:04 +00:00
- pip install -U setuptools
2018-07-20 02:01:35 +00:00
install:
2017-10-06 18:31:22 +00:00
- pip install .
- pip install -r requirements-dev.txt
- pip install keyrings.alt>=3.1
2015-01-05 07:04:39 +00:00
2015-07-27 16:53:14 +00:00
script:
2017-04-26 23:55:35 +00:00
- set -e
2015-07-27 16:53:14 +00:00
- coverage run --source pgcli -m py.test
2015-07-31 16:11:17 +00:00
- cd tests
- behave --no-capture
- cd ..
2017-04-27 14:13:53 +00:00
# check for changelog ReST compliance
- rst2html.py --halt=warning changelog.rst >/dev/null
# check for black code compliance, 3.6 only
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then pip install black && black --check . ; else echo "Skipping black for $TRAVIS_PYTHON_VERSION"; fi
2017-04-26 23:55:35 +00:00
- set +e
2015-07-27 16:53:14 +00:00
after_success:
- coverage combine
2015-07-27 16:53:14 +00:00
- codecov
2015-02-01 00:54:46 +00:00
notifications:
webhooks:
urls:
- YOUR_WEBHOOK_URL
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
2016-05-16 05:56:46 +00:00
on_start: false # default: false
services:
- postgresql
addons:
2019-03-18 04:11:21 +00:00
postgresql: "9.6"