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

Commit

Permalink
fix travis ci
Browse files Browse the repository at this point in the history
  • Loading branch information
wrmswindmill committed Aug 8, 2019
1 parent 7317800 commit 6f9c3f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ script:
-max-priority-2=15000 \
-max-priority-3=15000 > oclint.log
export TITLE="OCLint Result"
cd ../../ && npm run danger -- ci -i oclint --dangerfile ./dangerfile-output.js
cd ../../ && npm run danger -- ci -i oclint --dangerfile ./dangerfile-output.js || exit 1
fi
fi
Expand All @@ -190,7 +190,7 @@ script:
cd android
./gradlew :weex_sdk:lint --quiet
export TITLE="AndroidLint Result"
cd ../ && npm run danger -- ci -i androidlint --dangerfile ./dangerfile-output.js
cd ../ && npm run danger -- ci -i androidlint --dangerfile ./dangerfile-output.js || exit 1
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion dangerfile-output.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function nth_occurrence (string, char, nth) {
}

if (title === 'OCLint Result') {
const command = 'cat ios/sdk/oclint.log | grep -i "P[1|2]"'
const command = 'cat ios/sdk/oclint.log | grep -v "Summary: TotalFiles=" | grep -i "P[1|2]"'
const child = shell.exec(command)
if (child.stdout !== '') {
fail(child.stdout)
Expand Down

0 comments on commit 6f9c3f0

Please sign in to comment.