diff --git a/.travis.yml b/.travis.yml index 135c3a7cc1..3d88a24765 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,7 +32,7 @@ matrix: components: - android-26 - extra-android-m2repository - - env: STATIC_CODE_ANALYSIS=true + - env: STATIC_CODE_ANALYSIS=true CHECK_C=true language: objective-c osx_image: xcode7.2 cache: @@ -128,7 +128,7 @@ script: ;; esac - if [[ "${STATIC_CODE_ANALYSIS}" = "true" ]]; then + if [[ ("${STATIC_CODE_ANALYSIS}" = "true") && ("${CHECK_C}" = "true") ]]; then hasCFile=$(npm run danger -- run --dangerfile ./dangerfile-static-check.js) echo "The value of hasIosFile is ${hasIosFile}" if [[ "$hasCFile" =~ "hasCFile" ]]; then diff --git a/ios/sdk/WeexSDK/Sources/Model/WXComponent_performance.h b/ios/sdk/WeexSDK/Sources/Model/WXComponent_performance.h index bbc18cf4e1..e27b2e181a 100644 --- a/ios/sdk/WeexSDK/Sources/Model/WXComponent_performance.h +++ b/ios/sdk/WeexSDK/Sources/Model/WXComponent_performance.h @@ -25,3 +25,4 @@ @property (nonatomic,assign) BOOL ignoreInteraction; @end +