Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions JsonExample/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# OS X
.DS_Store

# Xcode

build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
.xcbkptlist

Pods/
Carthage/
31 changes: 31 additions & 0 deletions JsonExample/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
language: objective-c

xcode_workspace: Json-Api-Example.xcworkspace
xcode_scheme: Staging

before_install:
- rvm install 2.2.5
- export LANG=en_US.UTF-8
- sudo gem install cocoapods -v '0.39.0'

install:
- pod install

script:
- ./Json-Api-Example/Scripts/build.sh
- ./Json-Api-Example/Scripts/test.sh

branches:
only:
- master

notifications:
hipchat:
rooms:
- $API_TOKEN@ios-base
email:
recipients:
# - one@example.com
# - other@example.com
on_success: change # [always|never|change] # default: change
on_failure: change # [always|never|change] # default: always
4 changes: 4 additions & 0 deletions JsonExample/CI Scripts/Carthage
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
echo "Carthage script started"
carthage bootstrap --platform iOS
echo "Carthage script ended"
46 changes: 46 additions & 0 deletions JsonExample/CI Scripts/IncrementBuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/bin/sh
#Increment build
#Setup variables

CURRENT_COMMIT_HEAD="$(git rev-parse HEAD)"
CURRENT_COMMIT_REMOTE="$(git rev-parse origin/master)"

PROJECT_NAME="Json-Api-Example"

if [ "$CURRENT_COMMIT_HEAD" = "$CURRENT_COMMIT_REMOTE" ]; then
#Setup git
echo "Configuring of git..."
git config user.email "ios-admin@flatstack.com"
git config user.name "CI Server"
echo "Done"
#Get Info.plist file
CURRENT_DIR=$(dirname $PWD)
INFOPLIST_FILE="${PROJECT_NAME}/Info.plist"
echo "info.plist: ${INFOPLIST_FILE}"
echo ""
#Get build number
echo "Getting build number..."
BUILD_NUM=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${INFOPLIST_FILE}")
echo "Build number: ${BUILD_NUM}"
echo ""
#Create tag
TAG_NAME="Build_${BUILD_NUM}"
git tag $TAG_NAME
#Increment build number
BUILD_NUM=$(expr $BUILD_NUM + 1)
echo "Increasing build number to ${BUILD_NUM}..."
/usr/libexec/Plistbuddy -c "Set CFBundleVersion ${BUILD_NUM}" "${INFOPLIST_FILE}"
echo "Done"
#Commiting changes
echo "Commiting changes"
git add ${GREENHOUSE_BUILD_DIR}/${PROJECT_NAME}/Info.plist
git commit -m 'increment build number [skip ci]'
echo "Done"
#Pushing to git
echo "Pushing to git"
git push origin master
git push origin $TAG_NAME
echo "Done"
else
echo "Current branch is not master"
fi
1,865 changes: 1,865 additions & 0 deletions JsonExample/Json-Api-Example.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0800"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "21DB300E19DD2289003A418D"
BuildableName = "Json-Api-Example.app"
BlueprintName = "Json-Api-Example"
ReferencedContainer = "container:Json-Api-Example.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "NO"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "212D018A1BB1986B00B34340"
BuildableName = "Json-Api-ExampleTests.xctest"
BlueprintName = "Json-Api-ExampleTests"
ReferencedContainer = "container:Json-Api-Example.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Test"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "NO"
codeCoverageEnabled = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "212D018A1BB1986B00B34340"
BuildableName = "Json-Api-ExampleTests.xctest"
BlueprintName = "Json-Api-ExampleTests"
ReferencedContainer = "container:Json-Api-Example.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "1710DE5B1C453AF700912C5B"
BuildableName = "Json-Api-ExampleUITests.xctest"
BlueprintName = "Json-Api-ExampleUITests"
ReferencedContainer = "container:Json-Api-Example.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "21DB300E19DD2289003A418D"
BuildableName = "Json-Api-Example.app"
BlueprintName = "Json-Api-Example"
ReferencedContainer = "container:Json-Api-Example.xcodeproj">
</BuildableReference>
</MacroExpansion>
<EnvironmentVariables>
<EnvironmentVariable
key = "Testing"
value = "Unit"
isEnabled = "YES">
</EnvironmentVariable>
</EnvironmentVariables>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "21DB300E19DD2289003A418D"
BuildableName = "Json-Api-Example.app"
BlueprintName = "Json-Api-Example"
ReferencedContainer = "container:Json-Api-Example.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "AppStore"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "21DB300E19DD2289003A418D"
BuildableName = "Json-Api-Example.app"
BlueprintName = "Json-Api-Example"
ReferencedContainer = "container:Json-Api-Example.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "AppStore"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0800"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "21DB300E19DD2289003A418D"
BuildableName = "Json-Api-Example.app"
BlueprintName = "Json-Api-Example"
ReferencedContainer = "container:Json-Api-Example.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "NO"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "212D018A1BB1986B00B34340"
BuildableName = "Json-Api-ExampleTests.xctest"
BlueprintName = "Json-Api-ExampleTests"
ReferencedContainer = "container:Json-Api-Example.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Test"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "NO"
codeCoverageEnabled = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "212D018A1BB1986B00B34340"
BuildableName = "Json-Api-ExampleTests.xctest"
BlueprintName = "Json-Api-ExampleTests"
ReferencedContainer = "container:Json-Api-Example.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "1710DE5B1C453AF700912C5B"
BuildableName = "Json-Api-ExampleUITests.xctest"
BlueprintName = "Json-Api-ExampleUITests"
ReferencedContainer = "container:Json-Api-Example.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "21DB300E19DD2289003A418D"
BuildableName = "Json-Api-Example.app"
BlueprintName = "Json-Api-Example"
ReferencedContainer = "container:Json-Api-Example.xcodeproj">
</BuildableReference>
</MacroExpansion>
<EnvironmentVariables>
<EnvironmentVariable
key = "Testing"
value = "Unit"
isEnabled = "YES">
</EnvironmentVariable>
</EnvironmentVariables>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "21DB300E19DD2289003A418D"
BuildableName = "Json-Api-Example.app"
BlueprintName = "Json-Api-Example"
ReferencedContainer = "container:Json-Api-Example.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "21DB300E19DD2289003A418D"
BuildableName = "Json-Api-Example.app"
BlueprintName = "Json-Api-Example"
ReferencedContainer = "container:Json-Api-Example.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Loading