Skip to content

Commit

Permalink
Set up Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
OhKanghoon committed Feb 15, 2019
1 parent ca14161 commit e7b5c19
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
32 changes: 20 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e7b5c19

Please sign in to comment.