Skip to content

Commit e88b97c

Browse files
committed
travis: Use container infrastructure.
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>
1 parent d4f8d27 commit e88b97c

2 files changed

Lines changed: 11 additions & 9 deletions

File tree

.travis.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,18 @@ compiler:
33
- gcc
44
- clang
55

6+
addons:
7+
apt:
8+
packages:
9+
- libssl-dev
10+
- llvm-dev
11+
- gcc-multilib
12+
613
before_install: ./.travis/prepare.sh
714

8-
sudo: true
15+
before_script: export PATH=$PATH:$HOME/bin
16+
17+
sudo: false
918

1019
env:
1120
- OPTS="--disable-ssl"

.travis/prepare.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
#!/bin/bash
22

3-
sudo -E apt-get update -qq
4-
sudo -E apt-get install -qq libssl-dev llvm-dev
5-
sudo -E apt-get install -qq gcc-multilib
6-
if [ "$DPDK" ]; then
7-
sudo -E apt-get install -qq libfuse-dev
8-
fi
9-
103
git clone git://git.kernel.org/pub/scm/devel/sparse/chrisl/sparse.git
11-
cd sparse && make && sudo -E make install PREFIX=/usr && cd ..
4+
cd sparse && make && make install && cd ..

0 commit comments

Comments
 (0)