Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-client-android
Commits
d9d2ceb9
Commit
d9d2ceb9
authored
12 years ago
by
Alexandre Savard
Browse files
Options
Downloads
Patches
Plain Diff
#15052: Update jenkins-script, added a launch emulator function
parent
a4f33d72
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
jenkins-sflphone-android.sh
+33
-18
33 additions, 18 deletions
jenkins-sflphone-android.sh
with
33 additions
and
18 deletions
jenkins-sflphone-android.sh
+
33
−
18
View file @
d9d2ceb9
...
...
@@ -53,17 +53,20 @@ export PATH=$PATH:$ANDROID_SDK
export
PATH
=
$PATH
:
$ANDROID_SDK
/platform-tools
export
PATH
=
$PATH
:
$ANDROID_SDK_TOOLS
VIRTUAL_DEVICE_ID
=
1
5
VIRTUAL_DEVICE_ABI
=
9
VIRTUAL_DEVICE_ID
=
3
1
VIRTUAL_DEVICE_ABI
=
armeabi-v7a
VIRTUAL_DEVICE_NAME
=
sflphone-android
ANDROID_PROJECT_PATH
=
$HOME
/sflphone/sflphone-android
ANDROID_SFLPHONE_BIN
=
bin/SFLPhoneHome-debug.apk
print_help
()
{
echo
"Init sflphone-android test server, run test suite
Options:
-h Print this help message
-i Init test server environment (should be run only once)
-l Launch the emulator
-b Build the application, do not run the test suite
-r Run the full test suite, priorly build the application"
}
...
...
@@ -72,21 +75,10 @@ init_build_server() {
android delete avd
--name
$VIRTUAL_DEVICE_NAME
echo
"Create a new android virtual device, overwrite precendent one"
android create avd
-n
$VIRTUAL_DEVICE_NAME
-t
$VIRTUAL_DEVICE_ID
-f
}
build_sflphone_android
()
{
# android update project --target $VIRTUAL_DEVICE_ID --path $ANDROID_PROJECT_PATH
echo
"Build JNI related libraries"
# ndk-build clean
ndk-build
-j4
echo
"Build Java application"
ant debug
android create avd
-n
$VIRTUAL_DEVICE_NAME
-t
$VIRTUAL_DEVICE_ID
-f
-b
$VIRTUAL_DEVICE_ABI
}
run_test_suite
()
{
launch_emulator
()
{
echo
"Terminate any currently running emulator"
killall emulator-arm
-u
$USER
...
...
@@ -103,13 +95,32 @@ run_test_suite() {
echo
"List of devices currently running"
adb devices
echo
"Upload sflphone on the virtual device"
# ./adb-push-sflphone.sh
# adb push launch-sflphone.sh /data/data
# adb shell sh /data/data/launch-sflphone.sh
}
build_sflphone_android
()
{
# android update project --target $VIRTUAL_DEVICE_ID --path $ANDROID_PROJECT_PATH
echo
"Build JNI related libraries"
# ndk-build clean
ndk-build
-j4
echo
"Build Java application"
ant debug
echo
"Upload sflphone on the virtual device"
adb
install
$ANDROID_SFLPHONE_BIN
# ./adb-push-sflphone.sh
}
build_sflphone_test_suite
()
{
echo
"Build test suite"
pushd
tests
ant debug
popd
}
if
[
"$#"
-eq
0
]
;
then
print_help
fi
...
...
@@ -122,8 +133,12 @@ while getopts "hibr" opts; do
i
)
init_build_server
;;
l
)
launch_emulator
;;
b
)
build_sflphone_android
build_sflphone_test_suite
;;
r
)
run_test_suite
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment