Skip to content
This repository was archived by the owner on Aug 3, 2022. It is now read-only.

Commit e915a87

Browse files
committed
Rename the iOS scheme with iOS suffix, add travis-CI script
1 parent 0b9d18c commit e915a87

File tree

3 files changed

+53
-19
lines changed

3 files changed

+53
-19
lines changed

.travis.yml

Lines changed: 46 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,48 @@
1-
# references:
2-
# * https://www.objc.io/issues/6-build-tools/travis-ci/
3-
# * https://github.com/supermarin/xcpretty#usage
4-
5-
osx_image: xcode7.3
61
language: objective-c
7-
# cache: cocoapods
8-
# podfile: Example/Podfile
9-
# before_install:
10-
# - gem install cocoapods # Since Travis is not always on latest version
11-
# - pod install --project-directory=Example
2+
osx_image: xcode11
3+
4+
addons:
5+
homebrew:
6+
packages:
7+
- carthage
8+
update: true
9+
10+
env:
11+
global:
12+
- LC_CTYPE=en_US.UTF-8
13+
- LANG=en_US.UTF-8
14+
15+
addons:
16+
ssh_known_hosts: github.com
17+
18+
notifications:
19+
email: false
20+
21+
before_install:
22+
- env
23+
- locale
24+
- gem install cocoapods --no-document --quiet
25+
- gem install xcpretty --no-document --quiet
26+
- pod --version
27+
- pod setup --silent > /dev/null
28+
- pod repo update --silent
29+
- xcpretty --version
30+
- xcodebuild -version
31+
- xcodebuild -showsdks
32+
1233
script:
13-
- set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/SDWebImageSVGKitPlugin.xcworkspace -scheme SDWebImageSVGKitPlugin-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty
14-
- pod lib lint
34+
- set -o pipefail
35+
36+
- echo Check if the library described by the podspec can be built
37+
- pod lib lint --allow-warnings
38+
39+
- echo Build as dynamic frameworks
40+
- carthage update --configuration DEBUG
41+
- xcodebuild build clean -project SDWebImageSVGKitPlugin.xcodeproj -scheme 'SDWebImageSVGKitPlugin iOS' -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug | xcpretty -c
42+
- xcodebuild build clean -project SDWebImageSVGKitPlugin.xcodeproj -scheme 'SDWebImageSVGKitPlugin tvOS' -sdk appletvsimulator -configuration Debug | xcpretty -c
43+
- xcodebuild build clean -project SDWebImageSVGKitPlugin.xcodeproj -scheme 'SDWebImageSVGKitPlugin macOS' -sdk macosx -configuration Debug | xcpretty -c
44+
45+
- echo Build example
46+
- pod install --project-directory=Example
47+
- xcodebuild build -workspace Example/SDWebImageSVGKitPlugin.xcworkspace -scheme 'SDWebImageSVGKitPlugin-Example' -sdk iphonesimulator -destination 'name=iPhone 8' -configuration Debug | xcpretty -c
48+
- xcodebuild build -workspace Example/SDWebImageSVGKitPlugin.xcworkspace -scheme 'SDWebImageSVGKitPlugin-Example macOS' -sdk macosx -configuration Debug | xcpretty -c

SDWebImageSVGKitPlugin.xcodeproj/project.pbxproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@
204204
/* End PBXHeadersBuildPhase section */
205205

206206
/* Begin PBXNativeTarget section */
207-
3212D887237BE87500F6C7DA /* SDWebImageSVGKitPlugin */ = {
207+
3212D887237BE87500F6C7DA /* SDWebImageSVGKitPlugin iOS */ = {
208208
isa = PBXNativeTarget;
209-
buildConfigurationList = 3212D890237BE87500F6C7DA /* Build configuration list for PBXNativeTarget "SDWebImageSVGKitPlugin" */;
209+
buildConfigurationList = 3212D890237BE87500F6C7DA /* Build configuration list for PBXNativeTarget "SDWebImageSVGKitPlugin iOS" */;
210210
buildPhases = (
211211
3212D883237BE87500F6C7DA /* Headers */,
212212
3212D884237BE87500F6C7DA /* Sources */,
@@ -217,7 +217,7 @@
217217
);
218218
dependencies = (
219219
);
220-
name = SDWebImageSVGKitPlugin;
220+
name = "SDWebImageSVGKitPlugin iOS";
221221
productName = SDWebImageSVGKitPlugin;
222222
productReference = 3212D888237BE87500F6C7DA /* SDWebImageSVGKitPlugin.framework */;
223223
productType = "com.apple.product-type.framework";
@@ -291,7 +291,7 @@
291291
projectDirPath = "";
292292
projectRoot = "";
293293
targets = (
294-
3212D887237BE87500F6C7DA /* SDWebImageSVGKitPlugin */,
294+
3212D887237BE87500F6C7DA /* SDWebImageSVGKitPlugin iOS */,
295295
3212D8B4237BED7800F6C7DA /* SDWebImageSVGKitPlugin macOS */,
296296
3212D8C1237BEDA800F6C7DA /* SDWebImageSVGKitPlugin tvOS */,
297297
);
@@ -655,7 +655,7 @@
655655
defaultConfigurationIsVisible = 0;
656656
defaultConfigurationName = Release;
657657
};
658-
3212D890237BE87500F6C7DA /* Build configuration list for PBXNativeTarget "SDWebImageSVGKitPlugin" */ = {
658+
3212D890237BE87500F6C7DA /* Build configuration list for PBXNativeTarget "SDWebImageSVGKitPlugin iOS" */ = {
659659
isa = XCConfigurationList;
660660
buildConfigurations = (
661661
3212D891237BE87500F6C7DA /* Debug */,

SDWebImageSVGKitPlugin.xcodeproj/xcshareddata/xcschemes/SDWebImageSVGKitPlugin.xcscheme renamed to SDWebImageSVGKitPlugin.xcodeproj/xcshareddata/xcschemes/SDWebImageSVGKitPlugin iOS.xcscheme

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
BuildableIdentifier = "primary"
1717
BlueprintIdentifier = "3212D887237BE87500F6C7DA"
1818
BuildableName = "SDWebImageSVGKitPlugin.framework"
19-
BlueprintName = "SDWebImageSVGKitPlugin"
19+
BlueprintName = "SDWebImageSVGKitPlugin iOS"
2020
ReferencedContainer = "container:SDWebImageSVGKitPlugin.xcodeproj">
2121
</BuildableReference>
2222
</BuildActionEntry>
@@ -52,7 +52,7 @@
5252
BuildableIdentifier = "primary"
5353
BlueprintIdentifier = "3212D887237BE87500F6C7DA"
5454
BuildableName = "SDWebImageSVGKitPlugin.framework"
55-
BlueprintName = "SDWebImageSVGKitPlugin"
55+
BlueprintName = "SDWebImageSVGKitPlugin iOS"
5656
ReferencedContainer = "container:SDWebImageSVGKitPlugin.xcodeproj">
5757
</BuildableReference>
5858
</MacroExpansion>

0 commit comments

Comments
 (0)