Skip to content

Commit

Permalink
fix: update travis configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofzablocki committed Dec 9, 2016
1 parent a3d4746 commit 9872dba
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 12 deletions.
1 change: 1 addition & 0 deletions .swift-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0
37 changes: 25 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
# references:
# * http://www.objc.io/issue-6/travis-ci.html
# * https://github.com/supermarin/xcpretty#usage

language: objective-c
osx_image: xcode8.2
# 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
rvm: 2.2.2
osx_image: xcode8

env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
- WORKSPACE=Example/KZFileWatchers.xcworkspace
- SCHEME=KZFileWatchers-Example

before_install:
- gem install cocoapods -v 1.1.0.rc2 # remove -v after it ships
- gem install xcpretty

script:
- set -o pipefail && xcodebuild test -workspace Example/KZFileWatchers.xcworkspace -scheme KZFileWatchers-Example -sdk 'iphonesimulator10.2' -destination 'name=iPhone 6,OS=10.1' CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO | xcpretty
- pod lib lint
- set -o pipefail
- xcodebuild -version
- xcodebuild -showsdks

- xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -destination 'name=iPhone 6,OS=10.0' ONLY_ACTIVE_ARCH=NO CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO build | xcpretty
- xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" ONLY_ACTIVE_ARCH=NO CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO build | xcpretty

- xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk iphonesimulator -destination 'name=iPhone 6,OS=10.0' ONLY_ACTIVE_ARCH=NO CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO test | xcpretty

- pod _1.1.0.rc2_ lib lint

0 comments on commit 9872dba

Please sign in to comment.