1
0
mirror of https://github.com/dbcli/pgcli synced 2024-06-24 02:03:20 +00:00
pgcli/.travis.yml
Irina Truong 8cb7009bcd
black all the things. (#1049)
* added black to develop guide

* no need for pep8radius.

* changelog.

* Add pre-commit checkbox.

* Add pre-commit to dev reqs.

* Add pyproject.toml for black.

* Pre-commit config.

* Add black to travis and dev reqs.

* Install and run black in travis.

* Remove black from dev reqs.

* Lower black target version.

* Re-format with black.
2019-05-25 13:08:56 -07:00

53 lines
1.0 KiB
YAML

dist: xenial
sudo: required
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7"
before_install:
- which python
- which pip
- pip install -U setuptools
install:
- pip install .
- pip install -r requirements-dev.txt
- pip install keyrings.alt>=3.1
script:
- set -e
- coverage run --source pgcli -m py.test
- cd tests
- behave --no-capture
- cd ..
# 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
- 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.6"