Permalink
Browse files

fix travis

  • Loading branch information...
VilemKurz committed Dec 13, 2017
1 parent 35e7cdf commit 853d543fdbe2f427beaf905cd63dd6f57bf7ef2d
Showing with 6 additions and 6 deletions.
  1. +6 −6 .travis.yml
@@ -1,5 +1,5 @@
language: objective-c
osx_image: xcode7.2
osx_image: xcode9.2
cache:
- cocoapods
- bundler
@@ -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
@@ -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.