.travis.yml: Switch to "sudo: false" for faster builds
authorVladimir Panteleev <notmuch@thecybershadow.net>
Thu, 17 Aug 2017 17:51:43 +0000 (17:51 +0000)
committerDavid Bremner <david@tethera.net>
Wed, 30 Aug 2017 10:26:49 +0000 (07:26 -0300)
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.

.travis.yml

index c2316cc5b3b71f7a447a80c811ce69e353353a6e..802efd98c30d2eeef2963ad210368a62091b5e5a 100644 (file)
@@ -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