Commit graph

26 commits

Author SHA1 Message Date
Kyle Neideck
e83d07f00b
.travis.yml: Update Xcode versions. Print logs if package.sh fails.
Travis CI no longer supports building with Xcode 8, 8.1 or 8.2.
2017-12-27 17:53:28 +11:00
Kyle Neideck
59e70fb9d1
Set the OS default audio device back if BGMApp exits abnormally.
This is mostly so BGMApp won't leave BGMDevice as the default if BGMApp
crashes, which would stop audio from playing until the user changed the
default device themselves. Also handles SIGINT, SIGTERM and SIGQUIT.

For crashes where the BGMApp process may be in an unknown state, e.g.
segfaults, BGMXPCHelper handles changing the default device.

Should fix the Travis Xcode 9 build, which is currently failing because
the AppleScript we use to quit BGMApp in .travis.yml gets "user
cancelled" for some reason.

Also makes some minor improvements to the reports generated by
CrashReporter. The way CrashReporter works with Background Music should
otherwise be unchanged.
2017-10-23 20:19:42 +11:00
Kyle Neideck
173914e343
Add Xcode 9.0 and 9.1 to .travis.yml. 2017-10-11 09:01:05 +11:00
Kyle Neideck
a6e9179f2d
Travis: Skip packaging with Xcode 7.
It seems to be failing because of the "-enableAddressSanitizer NO"
option in build_and_install.sh, but I haven't looked into it.
2017-06-25 14:04:01 +10:00
Kyle Neideck
a7750f7d1e
Travis: Only publish releases for tags. 2017-06-14 13:54:45 +10:00
Scott Humphries
76c660292e
Temporarily remove travis branch restriction 2017-06-14 13:28:29 +10:00
Kyle Neideck
ed2f356570
Try to fix Travis not finding the files to release.
Also, make sure commands in uninstall.sh use the binaries that ship with
OS X and add the release files to .gitignore.
2017-06-12 14:38:26 +10:00
Scott Humphries
4d80e1f38f
Fix deploy script 2017-06-12 14:04:50 +10:00
Kyle Neideck
ca56d8d0b2
travis setup releases 2017-06-12 13:52:59 +10:00
Kyle Neideck
5e4556b49d
Add packaging script and (possibly) support for OS X 10.9. 2017-06-11 19:19:31 +10:00
Kyle Neideck
4839ea8a4b
Remove Xcode 6 from the Travis build matrix. 2017-05-30 23:22:48 +10:00
Kyle Neideck
6a26afe47a
Fix nullability warning in BGMXPCHelper. Also add Xcode 8.3 to .travis.yml.
Fixes #107.
2017-04-05 22:15:54 +10:00
Kyle Neideck
87af15d290
Skip the UI tests on Travis by directly editing BGMApp's Xcode scheme.
Skipping them by overriding runTest didn't work and this is the only other way
I can think of. xcodebuild's -skip-testing option would work, but only with
recent versions of Xcode.
2017-02-19 20:25:54 +11:00
Kyle Neideck
32723ff04b
Append the git HEAD short ID to the build version for snapshot builds. 2017-02-19 15:14:34 +11:00
Kyle Neideck
d49ff20820
Add builds with Xcode 8.1 and 6.4 to .travis.yml.
6.4 should already have been retired according to their documentation, so it
will probably need to be removed. But it would be nice to have because it's the
only OSX 10.10 image.
2017-02-19 12:55:20 +11:00
Kyle Neideck
07c1c2320b
Reorganise the BGMApp test dirs slightly. 2017-02-18 18:12:40 +11:00
Kyle Neideck
3ee563e4c5
Fix Travis again.
It seemed to think commands starting with ! were tags.
2017-02-16 00:26:04 +11:00
Kyle Neideck
e5c406da16
Fix ls command in .travis.yml failing the macOS 10.12 build.
Also, add some simple tests for build_and_install.sh and uninstall.sh to
.travis.yml.
2017-02-15 23:53:14 +11:00
Kyle Neideck
b5cf6de2ac
Update OSX image versions in .travis.yml. Add some files to the Xcode project. 2017-02-15 22:53:02 +11:00
Kyle Neideck
a5fb68ad2b Fix permissions error in Travis build. 2016-10-07 07:41:08 +11:00
Kyle Neideck
61a9d89ef9 Do Travis builds on a case-sensitive .dmg to catch failures.
Compiling on case-sensitive filesystems has been broken a couple of
times, so hopefully this will let us catch some of those bugs early.
2016-10-06 19:20:17 +11:00
Kyle Neideck
758fe02c7a Add OS X 10.10 and Xcode 8 builds to .travis.yml. 2016-08-23 19:42:07 +10:00
Kyle Neideck
4dba9412fb Install NullAudio driver before tests run on Travis. 2016-05-11 10:02:31 +10:00
Kyle Neideck
90bceb9887 On Travis, quit BGMApp before running the tests.
Also, log the installed audio devices and their audio IDs.

I think the tests are probably failing because the Travis VMs don't have
any audio devices. If so, this won't actually fix the tests, but it
should help us narrow it down.
2016-05-11 02:34:54 +10:00
Kyle Neideck
3eac1f5dab Allow sudo on Travis CI. 2016-04-28 08:49:35 +10:00
Kyle Neideck
eda3505f1a Add initial .travis.yml to see if it works. 2016-04-27 02:49:35 +10:00