travis: Put package list in a variable

Submitted by Pavel Emelianov on Oct. 19, 2016, 7:34 a.m.

Details

Message ID 5807221E.7060308@virtuozzo.com
State Accepted
Series "travis: Put package list in a variable"
Commit f7935b2cbad20db1fe6afccd85caa6c50365f56a
Headers show

Commit Message

Pavel Emelianov Oct. 19, 2016, 7:34 a.m.
Patches moving code around and changing packages list conflict
with each other all the time. Split these two :)

Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>

---

Patch hide | download patch | download mbox

diff --git a/scripts/travis/travis-tests b/scripts/travis/travis-tests
index 15e8afe..2d9797e 100755
--- a/scripts/travis/travis-tests
+++ b/scripts/travis/travis-tests
@@ -1,6 +1,10 @@ 
 #!/bin/sh
 set -x -e
 
+TRAVIS_PKGS="protobuf-c-compiler libprotobuf-c0-dev libaio-dev
+		libprotobuf-dev protobuf-compiler python-ipaddr libcap-dev
+		libnl-3-dev gcc-multilib libc6-dev-i386 gdb bash python-protobuf"
+
 travis_prep () {
 	[ -n "$SKIP_TRAVIS_PREP" ] && return
 
@@ -9,9 +13,7 @@  travis_prep () {
 	service apport stop
 
 	apt-get update -qq
-	apt-get install -qq protobuf-c-compiler libprotobuf-c0-dev libaio-dev	\
-		libprotobuf-dev protobuf-compiler python-ipaddr libcap-dev	\
-		libnl-3-dev gcc-multilib libc6-dev-i386 gdb bash python-protobuf
+	apt-get install -qq $TRAVIS_PKGS
 		if [ "$CLANG" = "1" ]; then
 			apt-get install -qq clang
 			MAKE_VARS=CC=clang