Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add Travis CI #17

Merged
merged 1 commit into from

1 participant

@gfontenot
Owner

This sets up the project for Travis

@gfontenot gfontenot Add Travis integration
* Uses `xctool` to run unit tests in the simulator. Install `xctool` with
  `homebrew` if you don't have it installed already: `brew install xctool
  --HEAD`
* Tests can now be run from the commandline with `xctool test`
* Travis will run all unit tests on each push
9b749fc
@gfontenot gfontenot merged commit 9b749fc into master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 10, 2013
  1. @gfontenot

    Add Travis integration

    gfontenot authored
    * Uses `xctool` to run unit tests in the simulator. Install `xctool` with
      `homebrew` if you don't have it installed already: `brew install xctool
      --HEAD`
    * Tests can now be run from the commandline with `xctool test`
    * Travis will run all unit tests on each push
This page is out of date. Refresh to see the latest.
View
3  .travis.yml
@@ -0,0 +1,3 @@
+language: objective-c
+before_install: "which xctool || brew update && brew install xctool --HEAD"
+script: "xctool test"
View
4 .xctool-args
@@ -0,0 +1,4 @@
+[
+ "-workspace", "BotKit.xcworkspace",
+ "-scheme", "Unit Tests"
+]
View
13 BotKit.xcodeproj/project.pbxproj
@@ -326,7 +326,7 @@
4DDE4A2516620785001707F4 /* Sources */,
4DDE4A2616620785001707F4 /* Frameworks */,
4DDE4A2716620785001707F4 /* Resources */,
- 4DDE4A2816620785001707F4 /* ShellScript */,
+ F84A295A1733F51000499774 /* Run Unit Tests */,
B7EBFCFD89E0457DAE4A37DE /* Copy Pods Resources */,
);
buildRules = (
@@ -391,32 +391,33 @@
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
- 4DDE4A2816620785001707F4 /* ShellScript */ = {
+ B7EBFCFD89E0457DAE4A37DE /* Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
+ name = "Copy Pods Resources";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "# Run the unit tests in this test bundle.\n\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"\n";
+ shellScript = "\"${SRCROOT}/Pods/Pods-BotKitTests-resources.sh\"\n";
};
- B7EBFCFD89E0457DAE4A37DE /* Copy Pods Resources */ = {
+ F84A295A1733F51000499774 /* Run Unit Tests */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
- name = "Copy Pods Resources";
+ name = "Run Unit Tests";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "\"${SRCROOT}/Pods/Pods-BotKitTests-resources.sh\"\n";
+ shellScript = "\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"";
};
/* End PBXShellScriptBuildPhase section */
View
53 BotKit.xcodeproj/xcshareddata/xcschemes/BotKit.xcscheme
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Scheme
+ LastUpgradeVersion = "0460"
+ version = "1.3">
+ <BuildAction
+ parallelizeBuildables = "YES"
+ buildImplicitDependencies = "YES">
+ </BuildAction>
+ <TestAction
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ buildConfiguration = "Debug">
+ <Testables>
+ <TestableReference
+ skipped = "NO">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "4DDE4A2916620785001707F4"
+ BuildableName = "BotKitTests.octest"
+ BlueprintName = "BotKitTests"
+ ReferencedContainer = "container:BotKit.xcodeproj">
+ </BuildableReference>
+ </TestableReference>
+ </Testables>
+ </TestAction>
+ <LaunchAction
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ launchStyle = "0"
+ useCustomWorkingDirectory = "NO"
+ buildConfiguration = "Debug"
+ ignoresPersistentStateOnLaunch = "NO"
+ debugDocumentVersioning = "YES"
+ allowLocationSimulation = "YES">
+ <AdditionalOptions>
+ </AdditionalOptions>
+ </LaunchAction>
+ <ProfileAction
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ savedToolIdentifier = ""
+ useCustomWorkingDirectory = "NO"
+ buildConfiguration = "Release"
+ debugDocumentVersioning = "YES">
+ </ProfileAction>
+ <AnalyzeAction
+ buildConfiguration = "Debug">
+ </AnalyzeAction>
+ <ArchiveAction
+ buildConfiguration = "Release"
+ revealArchiveInOrganizer = "YES">
+ </ArchiveAction>
+</Scheme>
View
69 BotKit.xcodeproj/xcshareddata/xcschemes/Unit Tests.xcscheme
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Scheme
+ LastUpgradeVersion = "0460"
+ version = "1.3">
+ <BuildAction
+ parallelizeBuildables = "NO"
+ buildImplicitDependencies = "NO">
+ <BuildActionEntries>
+ <BuildActionEntry
+ buildForTesting = "YES"
+ buildForRunning = "YES"
+ buildForProfiling = "YES"
+ buildForArchiving = "YES"
+ buildForAnalyzing = "YES">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "7024999DE9324DE8B67F9162"
+ BuildableName = "libPods-BotKitTests.a"
+ BlueprintName = "Pods-BotKitTests"
+ ReferencedContainer = "container:Pods/Pods.xcodeproj">
+ </BuildableReference>
+ </BuildActionEntry>
+ </BuildActionEntries>
+ </BuildAction>
+ <TestAction
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ buildConfiguration = "Debug">
+ <Testables>
+ <TestableReference
+ skipped = "NO">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "4DDE4A2916620785001707F4"
+ BuildableName = "BotKitTests.octest"
+ BlueprintName = "BotKitTests"
+ ReferencedContainer = "container:BotKit.xcodeproj">
+ </BuildableReference>
+ </TestableReference>
+ </Testables>
+ </TestAction>
+ <LaunchAction
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ launchStyle = "0"
+ useCustomWorkingDirectory = "NO"
+ buildConfiguration = "Debug"
+ ignoresPersistentStateOnLaunch = "NO"
+ debugDocumentVersioning = "YES"
+ allowLocationSimulation = "YES">
+ <AdditionalOptions>
+ </AdditionalOptions>
+ </LaunchAction>
+ <ProfileAction
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ savedToolIdentifier = ""
+ useCustomWorkingDirectory = "NO"
+ buildConfiguration = "Release"
+ debugDocumentVersioning = "YES">
+ </ProfileAction>
+ <AnalyzeAction
+ buildConfiguration = "Debug">
+ </AnalyzeAction>
+ <ArchiveAction
+ buildConfiguration = "Release"
+ revealArchiveInOrganizer = "YES">
+ </ArchiveAction>
+</Scheme>
Something went wrong with that request. Please try again.