From e10f5a72ce671f3096aa242827e25b1c4dbf1de4 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 19 May 2020 12:34:34 +0100 Subject: [PATCH] Add FreeBSD CI, from Jan Beich. --- .github/travis/before-install.sh | 7 +++++++ .travis.yml | 14 ++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/.github/travis/before-install.sh b/.github/travis/before-install.sh index 9954e583..a589a743 100644 --- a/.github/travis/before-install.sh +++ b/.github/travis/before-install.sh @@ -15,3 +15,10 @@ if [ "$TRAVIS_OS_NAME" = "linux" ]; then musl-tools fi fi + +if [ "$TRAVIS_OS_NAME" = "freebsd" ]; then + sudo pkg install -y \ + automake \ + libevent \ + pkgconf +fi diff --git a/.travis.yml b/.travis.yml index 16a04a16..ea3442af 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ language: c os: - linux + - freebsd - osx compiler: @@ -28,6 +29,19 @@ jobs: - os: osx compiler: clang env: BUILD=static + # No musl on FreeBSD + - os: freebsd + compiler: gcc + env: BUILD=musl + - os: freebsd + compiler: clang + env: BUILD=musl + - os: freebsd + compiler: gcc + env: BUILD=musl-static + - os: freebsd + compiler: clang + env: BUILD=musl-static # No musl on OS X - os: osx compiler: gcc