-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #715 from Qihoo360/dev
v2.3.1 dev to master
- Loading branch information
Showing
36 changed files
with
1,202 additions
and
1,055 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#!/bin/bash | ||
|
||
export RP_BASE_DIR=$(cd "$(dirname "$0")"; pwd) | ||
|
||
export TARGET_PROJECTS=( | ||
replugin-host-gradle | ||
replugin-host-library | ||
replugin-plugin-gradle | ||
replugin-plugin-library | ||
) | ||
|
||
__gradle_exec(){ if [[ -x gradlew ]];then ./gradlew ${@}; else gradle ${@}; fi; } | ||
|
||
__rp_deploy_project(){ | ||
[[ ! -d ${1} ]] && echo ">>> INVALID ${1}!!! <<<" && return | ||
# execute deploying | ||
echo ">>> ${1} <<<" && __gradle_exec -p ${1} clean bintrayUpload | ||
# revert changed files | ||
git checkout ${1} | ||
} | ||
|
||
rp_deploy(){ | ||
local current=`pwd` && cd ${RP_BASE_DIR} | ||
# saving all changes: git stash save "saving stash for deploying!!!" | ||
# deploy | ||
for p in ${TARGET_PROJECTS}; do __rp_deploy_project ${RP_BASE_DIR}/${p}; done | ||
# revert local changes: git revert --hard HEAD; git stash pop | ||
local current=`pwd` | ||
} | ||
|
||
rp_test(){ | ||
local projects=( | ||
# replugin-sample/host/app | ||
replugin-sample/host | ||
# replugin-sample/plugin/plugin-demo1/app | ||
replugin-sample/plugin/plugin-demo1 | ||
# replugin-sample/plugin/plugin-demo2/app | ||
replugin-sample/plugin/plugin-demo2 | ||
# replugin-sample/plugin/plugin-demo3-kotlin/app | ||
replugin-sample/plugin/plugin-demo3-kotlin | ||
# replugin-sample/plugin/plugin-webview/app | ||
replugin-sample/plugin/plugin-webview | ||
# replugin-sample-extra/fresco/FrescoHost/app | ||
replugin-sample-extra/fresco/FrescoHost | ||
# replugin-sample-extra/fresco/FrescoPlugin/app | ||
replugin-sample-extra/fresco/FrescoPlugin | ||
) | ||
local log=${RP_BASE_DIR}/build/rp_test.log && [[ -f $log ]] && rm -f $log | ||
local current=`pwd` | ||
for p in ${projects}; do | ||
echo -e ">>> BUILDING ${p}" | ||
p=${RP_BASE_DIR}/${p} && __gradle_exec -p ${p} clean asDebug 2>/dev/null >> ${log} && echo "SUCCEED"; | ||
ls -l ${p}/app/build/outputs/apk | ||
done | ||
cd ${current} | ||
} | ||
|
||
# grep --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,build,.gradle} -inr '2\.3\.0' . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.