]> rtime.felk.cvut.cz Git - jailhouse.git/commitdiff
ci: Work around Travis Trusty issue #5326
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 22 Jan 2016 08:52:21 +0000 (09:52 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Fri, 22 Jan 2016 09:08:55 +0000 (10:08 +0100)
Current Trusty beta leaves non-system installations of python in the
PATH. Therefore, we fail to find the Mako package during build.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
.travis.yml

index 8946429fa0c10821593dea4d615f6d761c5e619b..76e323733788efeb030844fcf15f8334f09d6605 100644 (file)
@@ -1,7 +1,7 @@
 #
 # Jailhouse, a Linux-based partitioning hypervisor
 #
-# Copyright (c) Siemens AG, 2014, 2015
+# Copyright (c) Siemens AG, 2014-2016
 #
 # Authors:
 #  Jan Kiszka <jan.kiszka@siemens.com>
@@ -18,6 +18,11 @@ compiler:
 sudo: required
 dist: trusty
 
+# Remove bogus python installations from PATH,
+# see https://github.com/travis-ci/travis-ci/issues/5326
+before_install:
+  - export PATH=$(echo $PATH | sed 's/\/opt\/python[^:]*//g')
+
 install:
   # Install additional packages
   - sudo apt-add-repository 'deb http://archive.ubuntu.com/ubuntu vivid main'