From e3e9a0a1ab83e557785bc63219f6e2b9bf4301c6 Mon Sep 17 00:00:00 2001 From: renmin Date: Wed, 31 Jul 2019 01:02:55 +0800 Subject: [PATCH] add -quiet to solve log too log and increase git init in android --- .travis.yml | 6 +++--- Gemfile.lock | 22 +++++++++++++++++++++- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7813ced45b..92e6e51cc7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -150,10 +150,10 @@ script: "ios" ) if npm run danger -- ci --dangerfile ./dangerfile-ios.js | grep -q "hasIosFile" ; then # build WeexSDK and run WeexSDKTests - xcodebuild -project ios/sdk/WeexSDK.xcodeproj test -scheme WeexSDKTests CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -destination "platform=iOS Simulator,name=iPhone 6" || exit 1 + xcodebuild -quiet -project ios/sdk/WeexSDK.xcodeproj test -scheme WeexSDKTests CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -destination "platform=iOS Simulator,name=iPhone 6" || exit 1 # build WeexDemo and run WeexDemo test cd weex-playground/ios && mkdir tmp && mv * tmp;cd tmp - xcodebuild -workspace WeexDemo.xcworkspace test -scheme WeexDemo CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -destination "platform=iOS Simulator,name=iPhone 6" || exit 1 + xcodebuild -quiet -workspace WeexDemo.xcworkspace test -scheme WeexDemo CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -destination "platform=iOS Simulator,name=iPhone 6" || exit 1 fi ;; esac @@ -187,7 +187,7 @@ script: if npm run danger -- ci --dangerfile ./dangerfile-static-check.js | grep -q "hasAndroidFile" ; then echo "hasAndroidFile" cd android - bundle exec danger --danger_id=androidLint --dangerfile=../Dangerfile-android + git init && bundle exec danger --danger_id=androidLint --dangerfile=../Dangerfile-android fi fi diff --git a/Gemfile.lock b/Gemfile.lock index 137360b03b..52d8335220 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,3 +1,10 @@ +GIT + remote: https://github.com/wrmswindmill/danger-code_style_validation.git + revision: 2fdd2bd13f9209356d1e2d6b2f6075e7d7ae8d6c + specs: + danger-code_style_validation (0.3.0) + danger-plugin-api (~> 1.0) + GEM remote: https://rubygems.org/ specs: @@ -9,6 +16,8 @@ GEM tzinfo (~> 1.1) addressable (2.5.2) public_suffix (>= 2.0.2, < 4.0) + ansi (1.5.0) + ast (2.4.0) atomos (0.1.2) claide (1.0.2) claide-plugins (0.9.2) @@ -64,6 +73,9 @@ GEM no_proxy_fix octokit (~> 4.7) terminal-table (~> 1) + danger-android_lint (0.0.7) + danger-plugin-api (~> 1.0) + oga danger-plugin-api (1.0.0) danger (> 2.0) danger-xcode_summary (0.5.0) @@ -89,9 +101,15 @@ GEM no_proxy_fix (0.1.2) octokit (4.9.0) sawyer (~> 0.8.0, >= 0.5.3) + oga (2.15) + ast + ruby-ll (~> 2.1) open4 (1.3.4) public_suffix (3.0.2) rouge (2.0.7) + ruby-ll (2.1.2) + ansi + ast ruby-macho (1.2.0) sawyer (0.8.1) addressable (>= 2.3.5, < 2.6) @@ -119,9 +137,11 @@ PLATFORMS DEPENDENCIES cocoapods! danger! + danger-android_lint! + danger-code_style_validation! danger-xcode_summary! xcpretty! xcpretty-json-formatter! BUNDLED WITH - 1.16.2 + 2.0.2