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

Commit

Permalink
fix android lint plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
wrmswindmill committed Jul 30, 2019
1 parent e3e9a0a commit 677c3fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .travis.yml
Expand Up @@ -187,7 +187,11 @@ script:
if npm run danger -- ci --dangerfile ./dangerfile-static-check.js | grep -q "hasAndroidFile" ; then
echo "hasAndroidFile"
cd android
git init && bundle exec danger --danger_id=androidLint --dangerfile=../Dangerfile-android
# use androidLint danger plugin to report android lint information
# androidLint danger need the project .git directory to get github repo infomation
# and it read from .git from current directory
# so temp to mv .git to current directory and mv .git to it's origin directory after exec androidLint plugin
mv ../.git ./ && bundle exec danger --danger_id=androidLint --dangerfile=../Dangerfile-android && mv .git ../
fi
fi
Expand Down

0 comments on commit 677c3fe

Please sign in to comment.