summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-02-08 10:31:05 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-02-08 10:31:05 +0000
commit6884720fae8a2622b14e93d9e35ca5fcc2283b40 (patch)
treedf6f736bb623cdd7932bbe2256101a6ac4ef7f35 /.travis.yml
parentInitial commit. (diff)
downloadpgcli-upstream/3.1.0.tar.xz
pgcli-upstream/3.1.0.zip
Adding upstream version 3.1.0.upstream/3.1.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml51
1 files changed, 51 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..8d50fbd
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,51 @@
+dist: xenial
+
+sudo: required
+
+language: python
+
+python:
+ - "3.6"
+ - "3.7"
+ - "3.8"
+ - "3.9-dev"
+
+before_install:
+ - which python
+ - which pip
+ - pip install -U setuptools
+
+install:
+ - pip install --no-cache-dir .
+ - 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"