From 2b2a5bf07c69f3535f93475cddce97db24bed3b9 Mon Sep 17 00:00:00 2001 From: Jianqiu Xiao Date: Mon, 12 Feb 2018 17:40:26 +0800 Subject: [PATCH] Fix Travis CI --- .travis.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7bbf013..b48bc51 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,11 +4,11 @@ osx_image: xcode9.2 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 # Since Travis is not always on latest version +- pod install --project-directory=Example script: -- set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/JXWebViewController.xcworkspace -scheme JXWebViewController-Example -sdk iphonesimulator11.0 ONLY_ACTIVE_ARCH=NO | xcpretty +- set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/JXWebViewController.xcworkspace -scheme JXWebViewController-Example -sdk iphonesimulator11.2 -destination 'platform=iOS Simulator,name=iPhone X,OS=11.2' ONLY_ACTIVE_ARCH=NO | xcpretty - pod lib lint