Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
wrmswindmill committed Jul 22, 2019
1 parent c0e261f commit 78ffbd5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -144,6 +144,7 @@ script:
hasCFile=$(npm run danger -- run --dangerfile ./dangerfile-static-check.js)
echo "The value of hasCFile is ${hasCFile}"
if [[ "$hasCFile" =~ "hasCFile" ]]; then
echo "hasCFile"
cd ios/sdk && xcodebuild | xcpretty -r json-compilation-database -o compile_commands.json
oclint-json-compilation-database oclint_args -- \
-disable-rule=ShortVariableName \
Expand All @@ -167,6 +168,7 @@ script:
hasAndroidFile=$(npm run danger -- run --dangerfile ./dangerfile-static-check.js)
echo "The value of hasAndroidFile is ${hasAndroidFile}"
if [[ "$hasAndroidFile" =~ "hasAndroidFile" ]]; then
echo "hasAndroidFile"
cd android
./gradlew clean assembleDebug test lint
fi
Expand Down
Expand Up @@ -52,4 +52,4 @@ public Class<? extends WXComponent> getComponentClass(String name, String classN
}
}

}
}
6 changes: 3 additions & 3 deletions dangerfile-static-check.js
Expand Up @@ -29,11 +29,11 @@ const type_android = 2;
const type_js = 3;

const getFileType = file => {
if (file.match(/\.(m|h|mm|cpp|cc)/)) {
if (file.match(/.+\.(m|h|mm|cpp|cc)/)) {
return type_c;
} else if (file.match(/\.java/)) {
} else if (file.match(/.+\.java/)) {
return type_android;
} else if (file.match(/\.js/)) {
} else if (file.match(/.+\.js/)) {
return type_js;
}else{
return type_unknown;
Expand Down
2 changes: 1 addition & 1 deletion ios/sdk/WeexSDK/Sources/Model/WXComponent_performance.h
Expand Up @@ -24,4 +24,4 @@
@property (nonatomic,assign) BOOL hasAdd;
@property (nonatomic,assign) BOOL ignoreInteraction;

@end
@end

0 comments on commit 78ffbd5

Please sign in to comment.