From 19c6098d30062467dab9b5148c72d2046cb35a6b Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Wed, 27 Aug 2014 21:52:40 -0400 Subject: [PATCH] Share the distribution scheme and configure it to run tests. This way, we don't rely on automatic scheme creation in Travis, nor do we have to update the Makefile for Travis if we want to add an additional test target to the project. Also, Travis should now build all targets (including BinaryDelta and Sparkle Test App), giving us better build coverage. --- Makefile | 4 +- .../xcschemes/Distribution.xcscheme | 96 +++++++++++++++++++ 2 files changed, 98 insertions(+), 2 deletions(-) create mode 100644 Sparkle.xcodeproj/xcshareddata/xcschemes/Distribution.xcscheme diff --git a/Makefile b/Makefile index 3e85f395..8dfd43bc 100644 --- a/Makefile +++ b/Makefile @@ -9,13 +9,13 @@ localizable-strings: rm Sparkle/en.lproj/Localizable.strings release: - xcodebuild -scheme Distribution -configuration Release -derivedDataPath "$(BUILDDIR)" + xcodebuild -scheme Distribution -configuration Release -derivedDataPath "$(BUILDDIR)" build open -R "$(BUILDDIR)/Build/Products/Release/Sparkle-"*.tar.bz2 build: xcodebuild clean build test: - xcodebuild -target 'Sparkle Unit Tests' -scheme 'Sparkle' test + xcodebuild -scheme Distribution -configuration Debug test travis: test diff --git a/Sparkle.xcodeproj/xcshareddata/xcschemes/Distribution.xcscheme b/Sparkle.xcodeproj/xcshareddata/xcschemes/Distribution.xcscheme new file mode 100644 index 00000000..11b73b52 --- /dev/null +++ b/Sparkle.xcodeproj/xcshareddata/xcschemes/Distribution.xcscheme @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +