shithub: choc

Download patch

ref: f3405a4d5c15d2e5bed53e63796cff62d2b4a288
parent: f8063a2747aaf2c05b331c5fd6a9f9d08e26b90c
author: Simon Howard <fraggle@soulsphere.org>
date: Sun Jun 5 07:28:02 EDT 2016

Use apt addon rather than sudo for builds.

The 'sudo apt-get install' instructions on the travis-ci website don't
work for containerized builds; instead we must specify packages to
install using the apt addon.

--- a/.travis.yml
+++ b/.travis.yml
@@ -3,9 +3,18 @@
 compiler: gcc
 
 # TODO: Remove old SDL library dependencies once sdl2-branch is merged.
-before_install:
-    - sudo apt-get update -qq
-    - sudo apt-get install -qq libsdl2-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-image-dev libsdl1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsamplerate0-dev libpng-dev
+addons:
+    apt:
+        packages:
+        - libsdl2-dev
+        - libsdl2-mixer-dev
+        - libsdl2-net-dev
+        - libsdl2-image-dev
+        - libsamplerate0-dev
+        - libsdl1.2-dev
+        - libsdl-mixer1.2-dev
+        - libsdl-net1.2-dev
+        - libpng-dev
 
 script: ./autogen.sh && make