mirror of
https://github.com/kyleneideck/BackgroundMusic
synced 2024-11-23 04:33:03 +00:00
42 lines
1.7 KiB
YAML
42 lines
1.7 KiB
YAML
language: objective-c
|
|
matrix:
|
|
include:
|
|
- os: osx
|
|
osx_image: xcode8
|
|
xcode_sdk: macosx10.11
|
|
sudo: required
|
|
- os: osx
|
|
osx_image: xcode7.3
|
|
xcode_sdk: macosx10.11
|
|
sudo: required
|
|
- os: osx
|
|
osx_image: xcode7.1
|
|
xcode_sdk: macosx10.10
|
|
sudo: required
|
|
branches:
|
|
only:
|
|
- master
|
|
install:
|
|
# Install Apple's NullAudio device. Travis' VMs don't have any audio devices installed.
|
|
- sudo xcodebuild -project BGMApp/BGMAppTests/NullAudio/AudioDriverExamples.xcodeproj -target NullAudio DSTROOT="/" install
|
|
- sudo launchctl kickstart -kp system/com.apple.audio.coreaudiod || sudo killall coreaudiod
|
|
script:
|
|
# Build in a case-sensitive disk image to catch failures that only happen on case-sensitive filesystems.
|
|
- hdiutil create -type SPARSEBUNDLE -fs 'Case-sensitive Journaled HFS+' -volname bgmbuild -nospotlight -verbose -attach -size 50m bgmbuild.dmg
|
|
- sudo cp -r . /Volumes/bgmbuild
|
|
- cd /Volumes/bgmbuild
|
|
# Install Background Music
|
|
- yes | ./build_and_install.sh
|
|
- cat build_and_install.log
|
|
- find */build/Release/*/ -type f -exec md5 {} \;
|
|
# Log the installed audio devices...
|
|
- system_profiler SPAudioDataType
|
|
# ...and their IDs.
|
|
- say -a '?'
|
|
# Close BGMApp (which the install script opened).
|
|
- osascript -e 'tell application "Background Music" to quit'
|
|
- xcodebuild -workspace BGM.xcworkspace -scheme 'Background Music Device' test
|
|
- xcodebuild -workspace BGM.xcworkspace -scheme 'Background Music' test
|
|
- xcodebuild -workspace BGM.xcworkspace -scheme 'BGMXPCHelper' test
|
|
- yes | ./uninstall.sh
|
|
- ls /Applications /Library/Audio/Plug-Ins/HAL /usr/local/libexec /Library/Application\ Support/Background\ Music
|