Skip to content

Commit 06d8926

Browse files
committed
Proper Travis CI script + CocoaPods 1.5.3
1 parent 39dcfd8 commit 06d8926

File tree

4 files changed

+42
-18
lines changed

4 files changed

+42
-18
lines changed

.travis.yml

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,35 @@
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: xcode9.4
3+
4+
env:
5+
global:
6+
- LC_CTYPE=en_US.UTF-8
7+
- LANG=en_US.UTF-8
8+
9+
addons:
10+
ssh_known_hosts: github.com
11+
12+
notifications:
13+
email: false
14+
15+
before_install:
16+
- env
17+
- locale
18+
- gem install cocoapods --no-rdoc --no-ri --no-document --quiet
19+
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
20+
- pod --version
21+
- pod setup --silent > /dev/null
22+
- pod repo update --silent
23+
- xcpretty --version
24+
- xcodebuild -version
25+
- xcodebuild -showsdks
26+
1227
script:
13-
- set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/SDWebImageYYPlugin.xcworkspace -scheme SDWebImageYYPlugin-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty
14-
- pod lib lint
28+
- set -o pipefail
29+
30+
- echo Check if the library described by the podspec can be built
31+
- pod lib lint --allow-warnings
32+
33+
- echo Build example
34+
- pod install --project-directory=Example
35+
- xcodebuild build -workspace Example/SDWebImageYYPlugin.xcworkspace -scheme SDWebImageYYPlugin-Example -sdk iphonesimulator -destination 'name=iPhone 6s' -configuration Debug | xcpretty -c

Example/Podfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
platform :ios, '8.0'
12
use_frameworks!
23
inhibit_all_warnings!
34

Example/SDWebImageYYPlugin.xcodeproj/project.pbxproj

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@
244244
isa = PBXProject;
245245
attributes = {
246246
CLASSPREFIX = SD;
247-
LastUpgradeCheck = 0920;
247+
LastUpgradeCheck = 0940;
248248
ORGANIZATIONNAME = DreamPiggy;
249249
TargetAttributes = {
250250
6003F5AD195388D20070C39A = {
@@ -425,12 +425,14 @@
425425
CLANG_WARN_BOOL_CONVERSION = YES;
426426
CLANG_WARN_COMMA = YES;
427427
CLANG_WARN_CONSTANT_CONVERSION = YES;
428+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
428429
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
429430
CLANG_WARN_EMPTY_BODY = YES;
430431
CLANG_WARN_ENUM_CONVERSION = YES;
431432
CLANG_WARN_INFINITE_RECURSION = YES;
432433
CLANG_WARN_INT_CONVERSION = YES;
433434
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
435+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
434436
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
435437
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
436438
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
@@ -457,7 +459,7 @@
457459
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
458460
GCC_WARN_UNUSED_FUNCTION = YES;
459461
GCC_WARN_UNUSED_VARIABLE = YES;
460-
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
462+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
461463
ONLY_ACTIVE_ARCH = YES;
462464
SDKROOT = iphoneos;
463465
TARGETED_DEVICE_FAMILY = "1,2";
@@ -476,12 +478,14 @@
476478
CLANG_WARN_BOOL_CONVERSION = YES;
477479
CLANG_WARN_COMMA = YES;
478480
CLANG_WARN_CONSTANT_CONVERSION = YES;
481+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
479482
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
480483
CLANG_WARN_EMPTY_BODY = YES;
481484
CLANG_WARN_ENUM_CONVERSION = YES;
482485
CLANG_WARN_INFINITE_RECURSION = YES;
483486
CLANG_WARN_INT_CONVERSION = YES;
484487
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
488+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
485489
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
486490
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
487491
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
@@ -501,7 +505,7 @@
501505
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
502506
GCC_WARN_UNUSED_FUNCTION = YES;
503507
GCC_WARN_UNUSED_VARIABLE = YES;
504-
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
508+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
505509
SDKROOT = iphoneos;
506510
TARGETED_DEVICE_FAMILY = "1,2";
507511
VALIDATE_PRODUCT = YES;

Example/SDWebImageYYPlugin.xcodeproj/xcshareddata/xcschemes/SDWebImageYYPlugin-Example.xcscheme

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0920"
3+
LastUpgradeVersion = "0940"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -26,7 +26,6 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29-
language = ""
3029
shouldUseLaunchSchemeArgsEnv = "YES">
3130
<Testables>
3231
<TestableReference
@@ -56,7 +55,6 @@
5655
buildConfiguration = "Debug"
5756
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
5857
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
59-
language = ""
6058
launchStyle = "0"
6159
useCustomWorkingDirectory = "NO"
6260
ignoresPersistentStateOnLaunch = "NO"

0 commit comments

Comments
 (0)