Skip to content

Commit

Permalink
cirrus: Add Cirrus CI integration for FreeBSD build
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
igsilya authored and blp committed Dec 11, 2018
1 parent 1270b6e commit b133129
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -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; }
1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ EXTRA_DIST = \
MAINTAINERS.rst \
README.rst \
NOTICE \
.cirrus.yml \
.travis.yml \
.travis/linux-build.sh \
.travis/linux-prepare.sh \
Expand Down

0 comments on commit b133129

Please sign in to comment.