diff --git a/.travis.yml b/.travis.yml index 8c73bec..1293562 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,14 +1,22 @@ -# references: -# * https://www.objc.io/issues/6-build-tools/travis-ci/ -# * https://github.com/supermarin/xcpretty#usage - -osx_image: xcode7.3 +osx_image: xcode10.1 language: objective-c -# cache: cocoapods -# podfile: Example/Podfile -# before_install: -# - gem install cocoapods # Since Travis is not always on latest version -# - pod install --project-directory=Example + +cache: cocoapods +podfile: Example/Podfile + +before_install: +- gem install cocoapods +- pod install --repo-update --project-directory=Example + +before_script: + - set -o pipefail + script: -- set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/RxApolloClient.xcworkspace -scheme RxApolloClient-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty -- pod lib lint +- xcodebuild clean build test + -workspace Example/RxApolloClient.xcworkspace + -scheme RxApolloClient-Example + -sdk iphonesimulator + -destination 'platform=iOS Simulator,name=iPhone 8,OS=12.0' + -configuration Debug + -enableCodeCoverage YES + CODE_SIGNING_REQUIRED=NO | xcpretty \ No newline at end of file diff --git a/README.md b/README.md index 3f9c02d..03a1982 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,8 @@ [![Platform](https://img.shields.io/cocoapods/p/RxApolloClient.svg?style=flat)](https://cocoapods.org/pods/RxApolloClient) ## Dependencies -- [RxSwift](https://github.com/ReactiveX/RxSwift) (>= 4.0) -- [apollo-ios](https://github.com/apollographql/apollo-ios) (>=0.9.4) +- [RxSwift](https://github.com/ReactiveX/RxSwift) (~> 4.0) +- [apollo-ios](https://github.com/apollographql/apollo-ios) (~>0.9.4) ## Requirements