summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml13
1 files changed, 7 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index 3f76cf5..fdc8395 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,10 +2,12 @@ dist: xenial
language: python
-python:
- - 3.6
- - 3.7
- - 3.8-dev
+matrix:
+ include:
+ - python: 3.6
+ env: PRE_COMMIT=true
+ - python: 3.7
+ - python: 3.8-dev
install:
- pip install .[dev]
@@ -14,5 +16,4 @@ script:
- py.test
- python setup.py bdist_wheel
- pip install ./dist/glucometerutils-*.whl
- - pre-commit install
- - pre-commit run --all-files
+ - if [[ $PRE_COMMIT ]]; then pre-commit install; pre-commit run --all-files; fi