SDWebImage/.travis.yml

45 lines
2.1 KiB
YAML
Raw Normal View History

2014-11-03 04:53:45 +08:00
language: objective-c
2015-10-31 00:36:10 +08:00
osx_image: xcode7.1
2016-05-09 04:04:40 +08:00
env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
2014-11-03 04:53:45 +08:00
2016-05-09 04:04:40 +08:00
before_install:
2014-11-03 04:53:45 +08:00
- env
- locale
2016-05-09 04:04:40 +08:00
- gem install cocoapods --no-rdoc --no-ri --no-document --quiet
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
2014-11-03 04:53:45 +08:00
- pod --version
- pod setup --silent > /dev/null
2014-11-03 04:53:45 +08:00
- pod repo update --silent
2016-05-09 04:04:40 +08:00
- xcpretty --version
- xcodebuild -version
- xcodebuild -showsdks
2014-11-03 04:53:45 +08:00
script:
2016-05-09 04:04:40 +08:00
- set -o pipefail
2014-11-03 04:53:45 +08:00
2016-05-09 04:04:40 +08:00
- echo Check if the library described by the podspec can be built
- pod lib lint --allow-warnings
2014-11-03 04:53:45 +08:00
2016-05-09 04:04:40 +08:00
- echo Build as static library
- xcodebuild clean build -workspace SDWebImage.xcworkspace -scheme 'SDWebImage-static' -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug | xcpretty -c
- echo Build as dynamic framework
- xcodebuild clean build -workspace SDWebImage.xcworkspace -scheme 'SDWebImage OSX' -sdk macosx -configuration Debug | xcpretty -c
2016-05-09 04:04:40 +08:00
- xcodebuild clean build -workspace SDWebImage.xcworkspace -scheme 'SDWebImage iOS' -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug | xcpretty -c
- xcodebuild clean build -workspace SDWebImage.xcworkspace -scheme 'SDWebImage tvOS' -sdk appletvsimulator -configuration Debug | xcpretty -c
- xcodebuild clean build -workspace SDWebImage.xcworkspace -scheme 'SDWebImage watchOS' -sdk watchsimulator -configuration Debug | xcpretty -c
2016-05-09 04:04:40 +08:00
- echo Build the Demo app
- xcodebuild clean build -workspace SDWebImage.xcworkspace -scheme 'SDWebImage Demo' -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug | xcpretty -c
2014-11-03 04:53:45 +08:00
2016-05-09 04:04:40 +08:00
- echo Run the tests
2015-03-17 22:14:33 +08:00
- pod install --project-directory=Tests
- xcodebuild clean -workspace SDWebImage.xcworkspace -scheme 'SDWebImage-static' -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug | xcpretty -c
- xcodebuild test -workspace SDWebImage.xcworkspace -scheme 'Tests' -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=latest' -configuration Debug | xcpretty -c