Permalink
Browse files

Set up for Travis CI

  • Loading branch information...
1 parent 9a37b01 commit 9cf56fbb0a70927dde7414b38d9b7268b9685e4f @paulmelnikow paulmelnikow committed Jul 13, 2013
View
@@ -0,0 +1,5 @@
+language: objective-c
+before_install:
+ - brew update
+ - brew install xctool --HEAD
+script: rake test
View
@@ -0,0 +1,12 @@
+desc "Run the Appledoc Tests"
+task :test do
+ ENV['GHUNIT_CLI'] = "1"
+ if system("xctool -workspace appledoc.xcworkspace -scheme AppledocTests")
+ puts "\033[0;32m** All tests executed successfully"
+ else
+ puts "\033[0;31m! Unit tests failed"
+ exit(-1)
+ end
+end
+
+task :default => 'test'
@@ -1187,6 +1187,7 @@
733EA122122BDD020060CBDE /* Sources */,
733EA123122BDD020060CBDE /* Frameworks */,
D818BACD15203A9E00B26451 /* CopyFiles */,
+ 9E9653391791A3DA0086251B /* ShellScript */,
);
buildRules = (
);
@@ -1256,6 +1257,19 @@
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
+ 9E9653391791A3DA0086251B /* ShellScript */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "if [ \"$GHUNIT_CLI\" = \"\" ]; then\nexit 0\nfi\n\n$TARGET_BUILD_DIR/$EXECUTABLE_PATH";
+ };
B4D1FFE715FF60B7009736E2 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Scheme
+ LastUpgradeVersion = "0460"
+ version = "1.3">
+ <BuildAction
+ parallelizeBuildables = "YES"
+ buildImplicitDependencies = "YES">
+ <BuildActionEntries>
+ <BuildActionEntry
+ buildForTesting = "YES"
+ buildForRunning = "YES"
+ buildForProfiling = "YES"
+ buildForArchiving = "YES"
+ buildForAnalyzing = "YES">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "733EA124122BDD020060CBDE"
+ BuildableName = "AppledocTests.app"
+ BlueprintName = "AppledocTests"
+ ReferencedContainer = "container:appledoc.xcodeproj">
+ </BuildableReference>
+ </BuildActionEntry>
+ </BuildActionEntries>
+ </BuildAction>
+ <TestAction
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ buildConfiguration = "Debug">
+ <Testables>
+ </Testables>
+ <MacroExpansion>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "733EA124122BDD020060CBDE"
+ BuildableName = "AppledocTests.app"
+ BlueprintName = "AppledocTests"
+ ReferencedContainer = "container:appledoc.xcodeproj">
+ </BuildableReference>
+ </MacroExpansion>
+ </TestAction>
+ <LaunchAction
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ launchStyle = "0"
+ useCustomWorkingDirectory = "NO"
+ buildConfiguration = "Debug"
+ ignoresPersistentStateOnLaunch = "NO"
+ debugDocumentVersioning = "YES"
+ allowLocationSimulation = "YES">
+ <BuildableProductRunnable>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "733EA124122BDD020060CBDE"
+ BuildableName = "AppledocTests.app"
+ BlueprintName = "AppledocTests"
+ ReferencedContainer = "container:appledoc.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ <AdditionalOptions>
+ </AdditionalOptions>
+ </LaunchAction>
+ <ProfileAction
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ savedToolIdentifier = ""
+ useCustomWorkingDirectory = "NO"
+ buildConfiguration = "Release"
+ debugDocumentVersioning = "YES">
+ <BuildableProductRunnable>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "733EA124122BDD020060CBDE"
+ BuildableName = "AppledocTests.app"
+ BlueprintName = "AppledocTests"
+ ReferencedContainer = "container:appledoc.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ </ProfileAction>
+ <AnalyzeAction
+ buildConfiguration = "Debug">
+ </AnalyzeAction>
+ <ArchiveAction
+ buildConfiguration = "Release"
+ revealArchiveInOrganizer = "YES">
+ </ArchiveAction>
+</Scheme>

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 9cf56fb

Please sign in to comment.