Skip to content
This repository was archived by the owner on Oct 9, 2019. It is now read-only.

Commit 28f3cd2

Browse files
committed
Proper Travis CI script
1 parent 173895a commit 28f3cd2

File tree

1 file changed

+33
-12
lines changed

1 file changed

+33
-12
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-
# * http://www.objc.io/issue-6/travis-ci.html
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/SDWebImageAPNGCoder.xcworkspace -scheme SDWebImageAPNGCoder-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/SDWebImageAPNGCoder.xcworkspace -scheme 'SDWebImageAPNGCoder-Example' -sdk iphonesimulator -destination 'name=iPhone 6s' -configuration Debug | xcpretty -c

0 commit comments

Comments
 (0)