Skip to content

Commit 33a830d

Browse files
committed
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.
1 parent b7c038e commit 33a830d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ python:
66
- "2.7"
77
addons:
88
firefox: "35.0"
9+
virtualenv:
10+
system_site_packages: true
911
install:
10-
- sudo apt-get -qq install libxml2-dev libxslt-dev python-dev libcurl4-openssl-dev
11-
- pip install -r requirements.txt
12+
- sudo apt-get -qq install libxml2-dev libxslt-dev python-dev libcurl4-openssl-dev python-lxml
1213
- pip install -r https-everywhere-checker/requirements.txt
1314
before_script:
1415
- sh -e /etc/init.d/xvfb start

0 commit comments

Comments
 (0)