[CRIU] [PATCH 1/2] travis-tests: install less packages

Kir Kolyshkin kir at openvz.org
Wed May 17 12:32:40 PDT 2017


asciidoc pulls in a lot of dependencies, most of those are not
needed as we just use it to convert txt to a man page. Adding
--no-install-recommended option to apt-get makes it skip those
additional dependencies. The only needed package is xmlto, so
let's add it explicitly.

This results is some 50 packages being skipped (mostly TeX/LaTeX and
some extra SGML tools), wow!

Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
 scripts/travis/travis-tests | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/travis/travis-tests b/scripts/travis/travis-tests
index d8a3e19..7ec514b 100755
--- a/scripts/travis/travis-tests
+++ b/scripts/travis/travis-tests
@@ -4,7 +4,7 @@ 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
-		libnet-dev util-linux asciidoc libnl-route-3-dev"
+		libnet-dev util-linux asciidoc xmlto libnl-route-3-dev"
 
 travis_prep () {
 	[ -n "$SKIP_TRAVIS_PREP" ] && return
@@ -31,7 +31,7 @@ travis_prep () {
 	fi
 
 	apt-get update -qq
-	apt-get install -qq $TRAVIS_PKGS
+	apt-get install -qq --no-install-recommends $TRAVIS_PKGS
 	chmod a+x $HOME
 }
 
-- 
2.9.3



More information about the CRIU mailing list