aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Beich <[email protected]>2020-05-24 13:12:18 +0000
committerJan Beich <[email protected]>2020-05-24 13:12:18 +0000
commitc262d0146eacbd4c53bd2bdfeda81ddde7b9cd82 (patch)
tree84c711de6f81f0f2730a58be6fd324439810c7a3
parent1a287f434a0931e9fed3fff2d252e62c08f8f4e1 (diff)
CI: add FreeBSD job
-rw-r--r--.travis.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 7198e0eb..857e9784 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,6 +7,8 @@ matrix:
dist: trusty
env:
- BUILD_ANDROID=true
+ - os: freebsd
+ compiler: clang
- os: osx
sudo: required
install:
@@ -39,6 +41,27 @@ install:
export OBOE_LOC=~/oboe
git clone --depth 1 -b 1.3-stable https://github.com/google/oboe "$OBOE_LOC"
fi
+ - >
+ if [[ "${TRAVIS_OS_NAME}" == "freebsd" ]]; then
+ # Install Ninja as it's used downstream.
+ # Install dependencies for all supported backends.
+ # Install Qt5 dependency for alsoft-config.
+ # Install ffmpeg for examples.
+ sudo pkg install -y \
+ alsa-lib \
+ ffmpeg \
+ jackit \
+ libmysofa \
+ ninja \
+ portaudio \
+ pulseaudio \
+ qt5-buildtools \
+ qt5-qmake \
+ qt5-widgets \
+ sdl2 \
+ sndio \
+ $NULL
+ fi
script:
- >
if [[ "${TRAVIS_OS_NAME}" == "linux" && -z "${BUILD_ANDROID}" ]]; then
@@ -63,6 +86,19 @@ script:
.
fi
- >
+ if [[ "${TRAVIS_OS_NAME}" == "freebsd" ]]; then
+ cmake -GNinja \
+ -DALSOFT_REQUIRE_ALSA=ON \
+ -DALSOFT_REQUIRE_JACK=ON \
+ -DALSOFT_REQUIRE_OSS=ON \
+ -DALSOFT_REQUIRE_PORTAUDIO=ON \
+ -DALSOFT_REQUIRE_PULSEAUDIO=ON \
+ -DALSOFT_REQUIRE_SDL2=ON \
+ -DALSOFT_REQUIRE_SNDIO=ON \
+ -DALSOFT_EMBED_HRTF_DATA=YES \
+ .
+ fi
+ - >
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
cmake \
-DALSOFT_REQUIRE_COREAUDIO=ON \