aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Metz <[email protected]>2017-03-05 17:23:31 +0100
committerMarcel Metz <[email protected]>2017-03-06 10:26:03 +0100
commita2d0bf8d3ab24fc9e1456dc48f975d404e122869 (patch)
treea7e1946b4702454a392fa8559256424d05721355
parent1d208c49b51a25f617026b7444f03f1cd4599ee6 (diff)
Configure CMake to require available backends on CI services
Configure CMake to require the installed backend libraries. This should help to find build system regressions. On TravisCI with Linux this requires the ALSA, PulseAudio, PortAudio, OSS and JACK backend. On TravisCI with Android cross compile Linux this requires the OpenSL backend. On TravisCI with MacOSX this requires the CoreAudio backend. ON AppVeyor with Windows this requires the WinMM, DSound and MMDevAPI backend.
-rw-r--r--.travis.yml13
-rw-r--r--appveyor.yml2
2 files changed, 12 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index bc8e6fbc..4483a9ab 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -31,16 +31,25 @@ install:
script:
- >
if [[ "${TRAVIS_OS_NAME}" == "linux" && -z "${BUILD_ANDROID}" ]]; then
- cmake .
+ cmake \
+ -DALSOFT_REQUIRE_ALSA=ON \
+ -DALSOFT_REQUIRE_OSS=ON \
+ -DALSOFT_REQUIRE_PORTAUDIO=ON \
+ -DALSOFT_REQUIRE_PULSEAUDIO=ON \
+ -DALSOFT_REQUIRE_JACK=ON \
+ .
fi
- >
if [[ "${TRAVIS_OS_NAME}" == "linux" && "${BUILD_ANDROID}" == "true" ]]; then
cmake \
-DCMAKE_TOOLCHAIN_FILE=~/android-ndk-r14/build/cmake/android.toolchain.cmake \
+ -DALSOFT_REQUIRE_OPENSL=ON \
.
fi
- >
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
- cmake .
+ cmake \
+ -DALSOFT_REQUIRE_COREAUDIO=ON \
+ .
fi
- make -j2
diff --git a/appveyor.yml b/appveyor.yml
index 80908b8c..0d60cf61 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -14,6 +14,6 @@ install:
build_script:
- cd build
- - cmake .. -G"%GEN%"
+ - cmake -G"%GEN%" -DALSOFT_REQUIRE_WINMM=ON -DALSOFT_REQUIRE_DSOUND=ON -DALSOFT_REQUIRE_MMDEVAPI=ON ..
- cmake --build . --config %CFG% --clean-first