summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladimir Panteleev <notmuch@thecybershadow.net>2017-08-17 17:51:43 +0000
committerDavid Bremner <david@tethera.net>2017-08-30 07:26:49 -0300
commitd4bb606834780edeef53ff6c20148f3afcfdea7c (patch)
tree32f53d0ab277b3c89ccd84263a5e73187e9e8209
parent95b82bb326eccbc9a1e683b5764b93795b166ca2 (diff)
.travis.yml: Switch to "sudo: false" for faster builds
Builds not requiring sudo access run in a container, which will have better performance and less overhead on the Travis infrastructure. Use the apt addon to install dependencies instead of explicit apt-get commands.
-rw-r--r--.travis.yml15
1 files changed, 11 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index c2316cc5..802efd98 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,11 +1,18 @@
language: c
dist: trusty
-sudo: required
+sudo: false
-before_install:
- - sudo apt-get update -qq
- - sudo apt-get install dtach libxapian-dev libgmime-2.6-dev libtalloc-dev python-sphinx gdb gpgsm
+addons:
+ apt:
+ packages:
+ - dtach
+ - libxapian-dev
+ - libgmime-2.6-dev
+ - libtalloc-dev
+ - python-sphinx
+ - gdb
+ - gpgsm
script:
- ./configure