From 33a830d43c55ca4e3fd324c13930ac7b1960c50f Mon Sep 17 00:00:00 2001 From: Jacob Hoffman-Andrews Date: Tue, 10 Feb 2015 18:25:57 -0800 Subject: [PATCH] Use system python-lxml in Travis. This avoids having to 'pip install' lxml, which takes a long time because it compiles the package each time. Instead we install the precompiled version from apt-get and tell virtualenv it's okay to use it. Note that this works for Python 2.7 only. This brings test times from ~3 minutes to ~1 minute. --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6dc0051e122d..a1641bfcdafc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,9 +6,10 @@ python: - "2.7" addons: firefox: "35.0" +virtualenv: + system_site_packages: true install: - - sudo apt-get -qq install libxml2-dev libxslt-dev python-dev libcurl4-openssl-dev - - pip install -r requirements.txt + - sudo apt-get -qq install libxml2-dev libxslt-dev python-dev libcurl4-openssl-dev python-lxml - pip install -r https-everywhere-checker/requirements.txt before_script: - sh -e /etc/init.d/xvfb start