From 5894033692a9936c4af73de3265060cf12d7dd22 Mon Sep 17 00:00:00 2001 From: Jon Parise Date: Wed, 31 Oct 2018 10:53:18 -0700 Subject: [PATCH 1/2] Build on Python 3.7 and cache pip artifacts This uses the well-established workaround to get Python 3.7 working on Travis. --- .travis.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0c88e89..9a2acf7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,8 +4,12 @@ python: - "3.4" - "3.5" - "3.6" - # - "3.7" # TODO: Re-enable after https://github.com/travis-ci/travis-ci/issues/9815 is fixed -sudo: false +matrix: + include: + - python: 3.7 + dist: xenial + sudo: true +cache: pip install: - pip install tox-travis script: From 166a73b0dd957321acab8d4790d2e8340c2e3702 Mon Sep 17 00:00:00 2001 From: Jon Parise Date: Wed, 31 Oct 2018 11:03:42 -0700 Subject: [PATCH 2/2] Only build on the master branch PR branches will still be built and tested. --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 9a2acf7..5366860 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,6 @@ +branches: + only: + - "master" language: python python: - "2.7"