Add travis and update podspec

This commit is contained in:
zekunyan
2016-07-17 18:27:02 +08:00
parent c10fc2835f
commit e067091a8e
3 changed files with 107 additions and 2 deletions

14
.travis.yml Normal file
View File

@@ -0,0 +1,14 @@
# references:
# * http://www.objc.io/issue-6/travis-ci.html
# * https://github.com/supermarin/xcpretty#usage
osx_image: xcode7.3
language: objective-c
cache: cocoapods
podfile: Example-Swift/Podfile
before_install:
- gem install cocoapods # Since Travis is not always on latest version
- pod install --project-directory=Example-Swift
script:
- set -o pipefail && xcodebuild -workspace Example-Swift/TTGSnackbarExample.xcworkspace -scheme TTGSnackbarExample ONLY_ACTIVE_ARCH=NO | xcpretty
- pod lib lint

View File

@@ -0,0 +1,91 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0730"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "F4DECB4F1BC2ADEE00C7E3AB"
BuildableName = "TTGSnackbarExample.app"
BlueprintName = "TTGSnackbarExample"
ReferencedContainer = "container:TTGSnackbarExample.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "F4DECB4F1BC2ADEE00C7E3AB"
BuildableName = "TTGSnackbarExample.app"
BlueprintName = "TTGSnackbarExample"
ReferencedContainer = "container:TTGSnackbarExample.xcodeproj">
</BuildableReference>
</MacroExpansion>
<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 = "F4DECB4F1BC2ADEE00C7E3AB"
BuildableName = "TTGSnackbarExample.app"
BlueprintName = "TTGSnackbarExample"
ReferencedContainer = "container:TTGSnackbarExample.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "F4DECB4F1BC2ADEE00C7E3AB"
BuildableName = "TTGSnackbarExample.app"
BlueprintName = "TTGSnackbarExample"
ReferencedContainer = "container:TTGSnackbarExample.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

View File

@@ -14,11 +14,11 @@ Pod::Spec.new do |s|
s.license = { :type => "MIT", :file => "LICENSE" }
s.author = { "zekunyan" => "zekunyan@163.com" }
s.social_media_url = "https://twitter.com/zorro_tutuge"
s.social_media_url = "http://tutuge.me"
s.platform = :ios, "8.0"
s.ios.deployment_target = '8.0'
s.source = { :git => "https://github.com/zekunyan/TTGSnackbar.git", :tag => s.version.to_s }
s.source_files = "TTGSnackbar/**/*.{h,swift}"
s.requires_arc = true
end
end