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
|
|
|
|
2015-01-09 10:23:05 +00:00
|
|
|
python:
|
2017-03-03 06:08:20 +00:00
|
|
|
- "3.6"
|
2019-03-18 04:11:21 +00:00
|
|
|
- "3.7"
|
2020-03-18 16:11:10 +00:00
|
|
|
- "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
|
|
|
|
2017-10-06 18:19:44 +00:00
|
|
|
install:
|
2017-10-06 18:31:22 +00:00
|
|
|
- pip install .
|
|
|
|
- pip install -r requirements-dev.txt
|
2018-05-14 18:24:31 +00:00
|
|
|
- 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
|
2018-09-21 20:36:23 +00:00
|
|
|
- behave --no-capture
|
2017-03-26 05:56:55 +00:00
|
|
|
- cd ..
|
2017-04-27 14:13:53 +00:00
|
|
|
# check for changelog ReST compliance
|
|
|
|
- rst2html.py --halt=warning changelog.rst >/dev/null
|
2019-05-25 20:08:56 +00:00
|
|
|
# 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:
|
2017-03-26 05:56:55 +00:00
|
|
|
- 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"
|