summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorThomas Graf <tgraf@noironetworks.com>2014-08-25 14:51:00 +0200
committerBen Pfaff <blp@nicira.com>2014-08-25 08:48:05 -0700
commit826bc7b61345a5d164a2551606bef1a038e39cab (patch)
tree51e82fb750332fff827cd3e3724b7c062b4b23ce /.travis.yml
parent5c476ea3bb2557328f33720f974d8f863fe69cfc (diff)
downloadopenvswitch-826bc7b61345a5d164a2551606bef1a038e39cab.tar.gz
build: Add travis continuous integration support
This enables the use of travis-ci via github. Linking any ovs github repo to travis-ci [0] will automatically lead to a build and testsuite run being triggered for each new commit or pull requests against the repo. The introduction of any warnings will cause the build to fail as both gcc and clang are invoked with -Werror. The build matrix currently includes: * --disable-ssl * --with-linux=linux-3.14.7 * --with-dpdk=1.7.0 Each of these builds is performed with gcc+sparse and clang. The testsuite is only run for the --with-linux build to keep the total build time on an acceptable level. Build failures are reported to the author and commiter by email, through the travis-ci web UI, and in the github pull request. A full build report example can be found here [1] [0] http://travis-ci.org/ [1] https://travis-ci.org/tgraf/ovs/builds/33485228 Signed-off-by: Thomas Graf <tgraf@noironetworks.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 000000000..85b13d07f
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,13 @@
+language: c
+compiler:
+ - gcc
+ - clang
+
+before_install: ./.travis/prepare.sh
+
+env:
+ - OPTS="--disable-ssl"
+ - TESTSUITE=1 KERNEL=1 OPTS="--with-linux=./linux-3.14.7"
+ - KERNEL=1 DPDK=1 OPTS="--with-dpdk=./dpdk-1.7.0
+
+script: ./.travis/build.sh $OPTS