Skip to content

Commit

Permalink
fix travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilém Kurz committed Dec 14, 2017
1 parent 35e7cdf commit 853d543
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
@@ -1,5 +1,5 @@
language: objective-c
osx_image: xcode7.2
osx_image: xcode9.2
cache:
- cocoapods
- bundler
Expand All @@ -8,8 +8,9 @@ before_install:

- git submodule sync
- git submodule update --init --recursive
- rvm install 2.2.4
#- rvm install 2.2.4
- gem install cocoapods
- gem install xcpretty

- pod --version
- pod setup --silent
Expand All @@ -19,13 +20,12 @@ before_install:
#- travis_wait 35 pod spec lint --use-libraries --allow-warnings ShareKit.podspec

#check podspec with current commit
- travis_wait 35 pod lib lint --use-libraries --allow-warnings ShareKit.podspec
- pod lib lint --use-libraries --allow-warnings ShareKit.podspec --no-subspecs

script:

#build library
- xctool -project "ShareKit.xcodeproj" -scheme "Static Library" -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO
- xcodebuild -project "ShareKit.xcodeproj" -scheme "Static Library" -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty && exit ${PIPESTATUS[0]}

#run tests
- xctool test -project "ShareKit.xcodeproj" -scheme "Static Library" -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO

- xcodebuild test -project "ShareKit.xcodeproj" -scheme "Static Library" -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO -destination 'platform=iOS Simulator,name=iPhone SE,OS=latest'| xcpretty && exit ${PIPESTATUS[0]}

0 comments on commit 853d543

Please sign in to comment.