Fly_MultiBranch_AutoTest
建置前
建置中
- 執行 Shell
- 螢幕解鎖 (待補)
- 開啟 wifi,關閉飛航模式 (原因是可能會被 Monkey 關掉)
- 送出 Home 鍵事件 (原因是畫面可能被擋住)
# enable wifi
${ADB} shell svc wifi enable
# disable airplane mode
${ADB} shell settings put global airplane_mode_on 0
${ADB} shell am broadcast -a android.intent.action.AIRPLANE_MODE --ez state false
# send HOME button event
${ADB} shell input keyevent 3


- Gradle Tasks
- uninstallAll 移除舊的程式 (因為可能出現版本號碼衝突)
- clean (避免舊的編譯結果遣留造成錯誤,但會造成編譯時間拉長)
- UnitTest
- UITest
- 安裝
- Lint
- findbugs
- 其他模組的 UnitTest
uninstallAll
clean
testE7lifeDi0DebugUnitTest
testE7lifeDi0ReleaseUnitTest
connectedDevDi1DebugAndroidTest
connectedE7lifeDi0DebugAndroidTest
installE7lifeDi0Release
installIcemanDi0Release
lintE7lifeDi0Debug
lintE7lifeDi0Release
lintDevDi1Debug
findbugs
:logger:testDebugUnitTest

建置後
- Lint
- FindBugs
- Monkey Test
- JaCoCo
- 封存成品
- JUnit
- FindBugs
- PMD
- CheckStyle
- Task Scanner Plugin
- Slack
- EMail
觸發程序