diff --git a/.travis.yml b/.travis.yml index a7fe21b8..354c86b9 100644 --- a/.travis.yml +++ b/.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]}