Update the Travis-CI script
This commit is contained in:
parent
c25a227510
commit
683d0bced1
|
@ -34,3 +34,6 @@ Carthage/Build
|
||||||
# `pod install` in .travis.yml
|
# `pod install` in .travis.yml
|
||||||
#
|
#
|
||||||
Pods/
|
Pods/
|
||||||
|
|
||||||
|
# SwiftPM
|
||||||
|
.build
|
||||||
|
|
47
.travis.yml
47
.travis.yml
|
@ -1,14 +1,37 @@
|
||||||
# references:
|
language: swift
|
||||||
# * https://www.objc.io/issues/6-build-tools/travis-ci/
|
osx_image: xcode11
|
||||||
# * https://github.com/supermarin/xcpretty#usage
|
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
- LC_CTYPE=en_US.UTF-8
|
||||||
|
- LANG=en_US.UTF-8
|
||||||
|
|
||||||
|
addons:
|
||||||
|
ssh_known_hosts: github.com
|
||||||
|
|
||||||
|
notifications:
|
||||||
|
email: false
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- env
|
||||||
|
- locale
|
||||||
|
- gem install cocoapods --no-rdoc --no-ri --no-document --quiet
|
||||||
|
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
|
||||||
|
- pod --version
|
||||||
|
- pod setup --silent > /dev/null
|
||||||
|
- pod repo update --silent
|
||||||
|
- xcpretty --version
|
||||||
|
- xcodebuild -version
|
||||||
|
- xcodebuild -showsdks
|
||||||
|
|
||||||
osx_image: xcode7.3
|
|
||||||
language: objective-c
|
|
||||||
# cache: cocoapods
|
|
||||||
# podfile: Example/Podfile
|
|
||||||
# before_install:
|
|
||||||
# - gem install cocoapods # Since Travis is not always on latest version
|
|
||||||
# - pod install --project-directory=Example
|
|
||||||
script:
|
script:
|
||||||
- set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/SDWebImageSwiftUI.xcworkspace -scheme SDWebImageSwiftUI-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty
|
- set -o pipefail
|
||||||
- pod lib lint
|
|
||||||
|
- echo Check if the library described by the podspec can be built
|
||||||
|
- pod lib lint --allow-warnings
|
||||||
|
|
||||||
|
- echo Build example
|
||||||
|
- pod install --project-directory=Example
|
||||||
|
- xcodebuild build -workspace Example/SDWebImageSwiftUI.xcworkspace -scheme SDWebImageSwiftUIDemo -sdk iphonesimulator -destination 'name=iPhone 8' ONLY_ACTIVE_ARCH=NO | xcpretty -c
|
||||||
|
|
||||||
|
- swift build
|
|
@ -0,0 +1,78 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Scheme
|
||||||
|
LastUpgradeVersion = "1100"
|
||||||
|
version = "1.3">
|
||||||
|
<BuildAction
|
||||||
|
parallelizeBuildables = "YES"
|
||||||
|
buildImplicitDependencies = "YES">
|
||||||
|
<BuildActionEntries>
|
||||||
|
<BuildActionEntry
|
||||||
|
buildForTesting = "YES"
|
||||||
|
buildForRunning = "YES"
|
||||||
|
buildForProfiling = "YES"
|
||||||
|
buildForArchiving = "YES"
|
||||||
|
buildForAnalyzing = "YES">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "320CDC2822FADB44007CF858"
|
||||||
|
BuildableName = "SDWebImageSwiftUIDemo.app"
|
||||||
|
BlueprintName = "SDWebImageSwiftUIDemo"
|
||||||
|
ReferencedContainer = "container:SDWebImageSwiftUI.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildActionEntry>
|
||||||
|
</BuildActionEntries>
|
||||||
|
</BuildAction>
|
||||||
|
<TestAction
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES">
|
||||||
|
<Testables>
|
||||||
|
</Testables>
|
||||||
|
</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 = "320CDC2822FADB44007CF858"
|
||||||
|
BuildableName = "SDWebImageSwiftUIDemo.app"
|
||||||
|
BlueprintName = "SDWebImageSwiftUIDemo"
|
||||||
|
ReferencedContainer = "container:SDWebImageSwiftUI.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildableProductRunnable>
|
||||||
|
</LaunchAction>
|
||||||
|
<ProfileAction
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
savedToolIdentifier = ""
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
debugDocumentVersioning = "YES">
|
||||||
|
<BuildableProductRunnable
|
||||||
|
runnableDebuggingMode = "0">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "320CDC2822FADB44007CF858"
|
||||||
|
BuildableName = "SDWebImageSwiftUIDemo.app"
|
||||||
|
BlueprintName = "SDWebImageSwiftUIDemo"
|
||||||
|
ReferencedContainer = "container:SDWebImageSwiftUI.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildableProductRunnable>
|
||||||
|
</ProfileAction>
|
||||||
|
<AnalyzeAction
|
||||||
|
buildConfiguration = "Debug">
|
||||||
|
</AnalyzeAction>
|
||||||
|
<ArchiveAction
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
revealArchiveInOrganizer = "YES">
|
||||||
|
</ArchiveAction>
|
||||||
|
</Scheme>
|
Loading…
Reference in New Issue