summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Hoffmann <l-m-h@web.de>2016-12-14 10:25:13 +0100
committerLucas Hoffmann <l-m-h@web.de>2016-12-20 20:07:02 +0100
commitb7f5ca31217bbb3994b7fd27303c4480ae99f4c4 (patch)
treec8ecc9cc0ccce134d5a72a4c2278a4f0bb6dac7d
parentaf9450aea2171e705ca2d2ee7fa11e21c779dc38 (diff)
Switch to container infrastructure on travis
Travis advises to prefer them and they start up much quicker compared to full VMs. This is now possible because https://github.com/travis-ci/apt-package-whitelist/issues/3895 has been resolved.
-rw-r--r--.travis.yml39
1 files changed, 15 insertions, 24 deletions
diff --git a/.travis.yml b/.travis.yml
index 74d2e831..f112a21a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,23 +1,19 @@
language: python
-# We want the docs checks to run as fast as possible and with minimal setup,
-# hence they will be run in a container. For the full build (needed for the
-# test runs) this is not possible as neither Ubuntu 12.4 nor 14.4 offer recent
-# enough versions of some packages.
-matrix:
- include:
- # a container for checking the docs
- - os: linux
- dist: trusty
- sudo: false
- python: "2.7"
- env: JOB=docs
- # a full VM to build all deps and run the tests
- - os: linux
- dist: trusty
- sudo: true
- python: "2.7"
- env: JOB=tests
+# We need a newer version of zlib to build notmuch from source as is available
+# in precise.
+dist: trusty
+
+python:
+ # We can add more version strings here when we support other python
+ # versions.
+ - "2.7"
+
+# We start two containers in parallel, one to check and build the docs and the
+# other to run the test suite.
+env:
+ - JOB=docs
+ - JOB=tests
addons:
apt:
@@ -33,6 +29,7 @@ addons:
- libxapian-dev
- libtalloc-dev
- zlib1g-dev
+ - libgmime-2.6-dev
# Build notmuch and the python notmuch libs manually. The versions of the
# notmuch library and the python module which are available in the 12.04 and
@@ -41,12 +38,6 @@ addons:
before_install: |
set -e
if [[ $JOB = tests ]]; then
- sudo apt-get update
- # Until https://github.com/travis-ci/apt-package-whitelist/issues/3895 is
- # resolved we have to install gmime with sudo. Afterwards we can swtich
- # to the container based infrastructure.
- # gmime is needed to build notmuch from source.
- sudo apt-get -yqq install libgmime-2.6-dev
# Clone the notmuch repository and move into it.
git clone git://notmuchmail.org/git/notmuch
cd notmuch