From 34b25dcc8ef0d9012eb3b0d9a158e11b159ffce0 Mon Sep 17 00:00:00 2001
From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
Date: Fri, 11 Jan 2019 19:22:56 +0000
Subject: [PATCH] Silence travis-ci build warnings by removing non-functional
 python3.6 (#4377)

* Remove non-functional python3.6 in travis env

* changelog
---
 .travis.yml           | 7 +++++++
 changelog.d/4377.misc | 1 +
 2 files changed, 8 insertions(+)
 create mode 100644 changelog.d/4377.misc

diff --git a/.travis.yml b/.travis.yml
index 728f0e248a..3cab77ce4d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -71,6 +71,13 @@ matrix:
 
 install:
   - pip install tox
+  
+  # if we don't have python3.6 in this environment, travis unhelpfully gives us
+  # a `python3.6` on our path which does nothing but spit out a warning. Tox
+  # tries to run it (even if we're not running a py36 env), so the build logs
+  # then have warnings which look like errors. To reduce the noise, remove the
+  # non-functional python3.6.
+  - ( ! command -v python3.6 || python3.6 --version ) &>/dev/null || rm -f $(command -v python3.6)
 
 script:
   - tox -e $TOX_ENV
diff --git a/changelog.d/4377.misc b/changelog.d/4377.misc
new file mode 100644
index 0000000000..06273023fc
--- /dev/null
+++ b/changelog.d/4377.misc
@@ -0,0 +1 @@
+Silence travis-ci build warnings by removing non-functional python3.6
\ No newline at end of file
-- 
GitLab