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

Commit 6f9c3f0

Browse files
committed
fix travis ci
1 parent 7317800 commit 6f9c3f0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ script:
180180
-max-priority-2=15000 \
181181
-max-priority-3=15000 > oclint.log
182182
export TITLE="OCLint Result"
183-
cd ../../ && npm run danger -- ci -i oclint --dangerfile ./dangerfile-output.js
183+
cd ../../ && npm run danger -- ci -i oclint --dangerfile ./dangerfile-output.js || exit 1
184184
fi
185185
fi
186186
@@ -190,7 +190,7 @@ script:
190190
cd android
191191
./gradlew :weex_sdk:lint --quiet
192192
export TITLE="AndroidLint Result"
193-
cd ../ && npm run danger -- ci -i androidlint --dangerfile ./dangerfile-output.js
193+
cd ../ && npm run danger -- ci -i androidlint --dangerfile ./dangerfile-output.js || exit 1
194194
fi
195195
fi
196196

dangerfile-output.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function nth_occurrence (string, char, nth) {
4141
}
4242

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

0 commit comments

Comments
 (0)