summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..b25de8e
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,31 @@
+sudo: false
+language: python
+python:
+ - "2.7"
+ - "3.5"
+ - "3.5"
+ - "3.6"
+ - "3.7-dev"
+ - "nightly"
+
+install:
+ - pip install -r dev-requirements.txt
+
+script:
+ - "if [[ $RUAMEL == '1' ]]; then pip install ruamel.yaml; fi"
+ - coverage erase
+ - coverage run --source pykwalify -p -m py.test -v
+ - flake8 --max-line-length=160 --show-source --statistics --exclude=.venv,.tox,dist,docs,build,.git
+ - python setup.py sdist bdist
+
+env:
+ - RUAMEL=0
+ - RUAMEL=1
+
+after_success:
+ - coverage combine
+ - coveralls
+
+matrix:
+ allow_failures:
+ - python: "nightly"