From b5e39eb0d4aa1deccabbbad95a1b57293052a933 Mon Sep 17 00:00:00 2001 From: Ben Date: Fri, 21 Feb 2020 11:20:12 +0100 Subject: only run pre-commit on python3.6 --- .travis.yml | 13 +++++++------ 1 file 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 -- cgit v1.2.3