From 2bf9370c680db456f8e832ad2211371aab14fa57 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Fri, 27 Jul 2018 14:05:30 -0700 Subject: [PATCH] travis: use different dists/sudo for different python versions --- .travis.yml | 38 +++++++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/.travis.yml b/.travis.yml index 650431f..a80ae26 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,3 @@ -# we don't actually need sudo, but that kicks us onto GCE, which means -# "group: edge" will let us get Ubuntu 14.04 LTS (xenial) -sudo: true -group: edge -dist: xenial language: python cache: pip before_cache: @@ -10,14 +5,6 @@ before_cache: branches: except: - /^WIP-.*$/ -python: - - "2.7" - - "3.3" - - "3.4" - - "3.5" - - "3.6" - - "3.7" - - "nightly" install: - pip install -U pip tox virtualenv codecov before_script: @@ -30,6 +17,31 @@ script: after_success: - codecov matrix: + include: + - python: 2.7 + dist: trusty + sudo: false + - python: 3.3 + dist: trusty + sudo: false + - python: 3.4 + dist: trusty + sudo: false + - python: 3.5 + dist: trusty + sudo: false + - python: 3.6 + dist: trusty + sudo: false + - python: 3.7 + dist: xenial + # we don't actually need sudo, but that kicks us onto GCE, which means + # "group: edge" will let us get Ubuntu 14.04 LTS (xenial) + #group: edge + sudo: true + - python: nightly + dist: trusty + sudo: false allow_failures: - python: "3.3" - python: "nightly"