Skip to content

Commit 3cf85b1

Browse files
committed
Add Travis-CI script
1 parent a68fa1e commit 3cf85b1

3 files changed

Lines changed: 47 additions & 18 deletions

File tree

.travis.yml

Lines changed: 41 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,43 @@
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+
- brew update
21+
- brew upgrade carthage
22+
- pod --version
23+
- pod setup --silent > /dev/null
24+
- pod repo update --silent
25+
- xcpretty --version
26+
- xcodebuild -version
27+
- xcodebuild -showsdks
28+
1229
script:
13-
- set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/SDWebImagePDFCoder.xcworkspace -scheme SDWebImagePDFCoder-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty
14-
- pod lib lint
30+
- set -o pipefail
31+
32+
- echo Check if the library described by the podspec can be built
33+
#- pod lib lint --allow-warnings
34+
35+
- echo Build as dynamic frameworks
36+
- carthage update --platform ios,tvos,macos --configuration DEBUG
37+
- xcodebuild build clean -project SDWebImageSVGCoder.xcodeproj -scheme 'SDWebImageSVGCoder iOS' -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug | xcpretty -c
38+
- xcodebuild build clean -project SDWebImageSVGCoder.xcodeproj -scheme 'SDWebImageSVGCoder tvOS' -sdk appletvsimulator -configuration Debug | xcpretty -c
39+
- xcodebuild build clean -project SDWebImageSVGCoder.xcodeproj -scheme 'SDWebImageSVGCoder macOS' -sdk macosx -configuration Debug | xcpretty -c
40+
41+
- echo Build example
42+
- pod install --project-directory=Example
43+
- xcodebuild build -workspace Example/SDWebImageSVGCoder.xcworkspace -scheme SDWebImageSVGCoder-Example -sdk iphonesimulator -destination 'name=iPhone 6s' -configuration Debug | xcpretty -c

Example/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ PODS:
33
- SDWebImage/Core (= 5.0.0-beta3)
44
- SDWebImage/Core (5.0.0-beta3)
55
- SDWebImagePDFCoder (0.1.0):
6-
- SDWebImage (>= 5.0.0-beta)
6+
- SDWebImage (>= 5.0.0-beta3)
77

88
DEPENDENCIES:
99
- SDWebImagePDFCoder (from `../`)
@@ -18,7 +18,7 @@ EXTERNAL SOURCES:
1818

1919
SPEC CHECKSUMS:
2020
SDWebImage: e52654ceef9fdc19f4c612d64a5b6d3f05dd81a4
21-
SDWebImagePDFCoder: 28c0027dc67eb64633ae824166cc0af35ee6fb22
21+
SDWebImagePDFCoder: 8b994250f0b82f4043afc6e6598f4e2b40cdbbab
2222

2323
PODFILE CHECKSUM: ca5230ad7b6978adc4f1bdf02b8a0ba3005b984b
2424

SDWebImagePDFCoder.podspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ Pod::Spec.new do |s|
2121
TODO: Add long description of the pod here.
2222
DESC
2323

24-
s.homepage = 'https://github.com/lizhuoli1126@126.com/SDWebImagePDFCoder'
24+
s.homepage = 'https://github.com/SDWebImage/SDWebImagePDFCoder'
2525
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
2626
s.license = { :type => 'MIT', :file => 'LICENSE' }
27-
s.author = { 'lizhuoli1126@126.com' => 'lizhuoli1126@126.com' }
28-
s.source = { :git => 'https://github.com/lizhuoli1126@126.com/SDWebImagePDFCoder.git', :tag => s.version.to_s }
27+
s.author = { 'DreamPiggy' => 'lizhuoli1126@126.com' }
28+
s.source = { :git => 'https://github.com/SDWebImage/SDWebImagePDFCoder.git', :tag => s.version.to_s }
2929
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
3030

3131
s.ios.deployment_target = '8.0'
@@ -35,5 +35,5 @@ TODO: Add long description of the pod here.
3535
s.source_files = 'SDWebImagePDFCoder/Classes/**/*', 'SDWebImagePDFCoder/Module/SDWebImagePDFCoder.h'
3636
s.module_map = 'SDWebImagePDFCoder/Module/SDWebImagePDFCoder.modulemap'
3737

38-
s.dependency 'SDWebImage', '>= 5.0.0-beta'
38+
s.dependency 'SDWebImage', '>= 5.0.0-beta3'
3939
end

0 commit comments

Comments
 (0)