From b1331295eaada5bc0e3bcd7e3b964003af3273d6 Mon Sep 17 00:00:00 2001 From: Ilya Maximets Date: Tue, 11 Dec 2018 17:34:17 +0300 Subject: cirrus: Add Cirrus CI integration for FreeBSD build CirrusCI [1] is free for open-sorce projects and provides similar to TravisCI interfaces. One significant difference is ability to run tasks on FreeBSD instances. This patch adds simple configuration file to test OVS build on two FreeBSD releases with gcc and clang. Unit tests are commented out because they are broken for now. To enable the automated checks Cirrus CI application from GitHub Marketplace should be installed. See details in Quick Start guide [2]. [1] https://cirrus-ci.org [2] https://cirrus-ci.org/guide/quick-start/ Signed-off-by: Ilya Maximets Signed-off-by: Ben Pfaff --- .cirrus.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .cirrus.yml (limited to '.cirrus.yml') diff --git a/.cirrus.yml b/.cirrus.yml new file mode 100644 index 000000000..4902fd370 --- /dev/null +++ b/.cirrus.yml @@ -0,0 +1,30 @@ +freebsd_build_task: + + freebsd_instance: + matrix: + image: freebsd-12-0-release-amd64 + image: freebsd-11-2-release-amd64 + cpu: 4 + memory: 8G + + env: + matrix: + COMPILER: gcc + COMPILER: clang + + prepare_script: + - pkg install -y automake libtool gmake gcc wget + python py27-six py27-sphinx + + configure_script: + - ./boot.sh + - ./configure CC=$COMPILER MAKE=gmake OVS_CFLAGS='-Wall' --enable-Werror + || { cat config.log; exit 1; } + + build_script: + - gmake -j8 + +# TODO(i.maximets): Uncomment the test suite execution when it is fixed. +# check_script: +# - gmake -j8 check TESTSUITEFLAGS=-j8 RECHECK=yes +# || { cat ./tests/testsuite.log; exit 1; } -- cgit v1.2.1