travis: Use container infrastructure.
authorDaniele Di Proietto <diproiettod@vmware.com>
Wed, 23 Sep 2015 11:59:26 +0000 (12:59 +0100)
committerDaniele Di Proietto <diproiettod@vmware.com>
Tue, 29 Sep 2015 12:35:23 +0000 (13:35 +0100)
Recently some testcases have been failing in travis because of a warning
related to the use of an L3 device (OpenVZ specific) inside the workers.

To get travis tests working again we can move to the newer container
infrastructure: this commit does that.

The disadvantage is that there's no sudo access anymore, but we can
install packages with the apt plugin, and we shouldn't use root for
anything else

Also, since we're building DPDK with vhost-user (not vhost-cuse),
libfuse-dev is not needed anymore.

Tested-at: https://travis-ci.org/ddiproietto/ovs/builds/81764972

Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
CC: Joe Stringer <joestringer@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
.travis.yml
.travis/prepare.sh

index aca3131..1c11bb5 100644 (file)
@@ -3,9 +3,18 @@ compiler:
   - gcc
   - clang
 
+addons:
+  apt:
+    packages:
+      - libssl-dev
+      - llvm-dev
+      - gcc-multilib
+
 before_install: ./.travis/prepare.sh
 
-sudo: true
+before_script: export PATH=$PATH:$HOME/bin
+
+sudo: false
 
 env:
   - OPTS="--disable-ssl"
index 0fd6c28..cfc1b17 100755 (executable)
@@ -1,11 +1,4 @@
 #!/bin/bash
 
-sudo -E apt-get update -qq
-sudo -E apt-get install -qq libssl-dev llvm-dev
-sudo -E apt-get install -qq gcc-multilib
-if [ "$DPDK" ]; then
-    sudo -E apt-get install -qq libfuse-dev
-fi
-
 git clone git://git.kernel.org/pub/scm/devel/sparse/chrisl/sparse.git
-cd sparse && make && sudo -E make install PREFIX=/usr && cd ..
+cd sparse && make && make install && cd ..