Merge pull request #162 from sahrens/master

Add IntegrationTests to travis CI.
This commit is contained in:
sahrens 2015-03-17 23:36:08 -07:00
commit 9b4110d4dd
5 changed files with 140 additions and 8 deletions

View File

@ -1,15 +1,15 @@
language: objective-c
xcode_project: Examples/UIExplorer/UIExplorer.xcodeproj
xcode_scheme: UIExplorer
xcode_sdk: iphonesimulator8.1
before_install:
- brew update
- brew reinstall xctool
install:
- npm install
- npm test
# Automatically publish the website
after_success: '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && (cd website; npm install; ./setup.sh; ./publish.sh; echo) || echo'
env:
- secure: "g8Xjbslq4R+3oLVgBvXM5QhiJ+7q+H+dH4+sXReyyZ64M5gf32U7oOjQNVkdx79dnGFc6a619otGsX4RiEkQlkiR+4uCgJUIgPwN4YFCIgYu4Z/0FnbbRu5yyywh5zv4WwGmAtMkgGztoMBnps5gCiPUM/RGIqwVk0Ghbmh5c2k="
script: ./build.sh 8.1
# Automatically publish the website
after_success: '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && (cd website; npm install; ./setup.sh; ./publish.sh; echo) || echo'
branches:
only:
- master

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:IntegrationTests.xcodeproj">
</FileRef>
</Workspace>

View File

@ -0,0 +1,110 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0610"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
BuildableName = "IntegrationTests.app"
BlueprintName = "IntegrationTests"
ReferencedContainer = "container:IntegrationTests.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "004D289D1AAF61C70097A701"
BuildableName = "IntegrationTestsTests.xctest"
BlueprintName = "IntegrationTestsTests"
ReferencedContainer = "container:IntegrationTests.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 = "004D289D1AAF61C70097A701"
BuildableName = "IntegrationTestsTests.xctest"
BlueprintName = "IntegrationTestsTests"
ReferencedContainer = "container:IntegrationTests.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
BuildableName = "IntegrationTests.app"
BlueprintName = "IntegrationTests"
ReferencedContainer = "container:IntegrationTests.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 = "13B07F861A680F5B00A75B9A"
BuildableName = "IntegrationTests.app"
BlueprintName = "IntegrationTests"
ReferencedContainer = "container:IntegrationTests.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
BuildableName = "IntegrationTests.app"
BlueprintName = "IntegrationTests"
ReferencedContainer = "container:IntegrationTests.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

View File

@ -387,7 +387,7 @@
isa = PBXNativeTarget;
buildConfigurationList = 83CBBA3F1A601D0F00E9B192 /* Build configuration list for PBXNativeTarget "ReactKit" */;
buildPhases = (
006B79A01A781F38006873D1 /* ShellScript */,
006B79A01A781F38006873D1 /* Launch Packager */,
83CBBA2A1A601D0E00E9B192 /* Sources */,
83CBBA2B1A601D0E00E9B192 /* Frameworks */,
83CBBA2C1A601D0E00E9B192 /* Copy Files */,
@ -434,13 +434,14 @@
/* End PBXProject section */
/* Begin PBXShellScriptBuildPhase section */
006B79A01A781F38006873D1 /* ShellScript */ = {
006B79A01A781F38006873D1 /* Launch Packager */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Launch Packager";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;

14
build.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
xctool \
-project IntegrationTests/IntegrationTests.xcodeproj \
-scheme IntegrationTests \
-sdk iphonesimulator8.1 \
-destination "platform=iOS Simulator,OS=${1},name=iPhone 5" \
build test
xctool \
-project Examples/UIExplorer/UIExplorer.xcodeproj \
-scheme UIExplorer \
-sdk iphonesimulator8.1 \
-destination "platform=iOS Simulator,OS=${1},name=iPhone 5" \
build test