Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
3807fd0b
Commit
3807fd0b
authored
Nov 30, 2016
by
Stu Young
Committed by
GitHub
Nov 30, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3510 from edx/estute/install-cached-android-image
install cached android emu on jenkins workers
parents
7628a316
7f2ff6ed
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
2 deletions
+34
-2
playbooks/roles/android_sdk/defaults/main.yml
+3
-1
playbooks/roles/android_sdk/tasks/main.yml
+22
-0
playbooks/roles/jenkins_worker/meta/main.yml
+1
-1
playbooks/roles/jenkins_worker/tasks/test_android_worker.yml
+8
-0
No files found.
playbooks/roles/android_sdk/defaults/main.yml
View file @
3807fd0b
...
...
@@ -20,8 +20,10 @@ android_tools:
-
{
package
:
'
extra-google-m2repository'
,
android_test_path
:
'
extras/google/m2repository'
}
-
{
package
:
'
extra-android-m2repository'
,
android_test_path
:
'
extras/android/m2repository'
}
-
{
package
:
'
sys-img-armeabi-v7a-android-21'
,
android_test_path
:
'
system-images/android-21/default/armeabi-v7a/'
}
-
{
package
:
'
sys-img-armeabi-v7a-android-23'
,
android_test_path
:
'
system-images/android-23/default/armeabi-v7a/'
}
#
- { package: 'sys-img-armeabi-v7a-android-23', android_test_path: 'system-images/android-23/default/armeabi-v7a/' }
# libraries needed for avd(android virtual device) emulation
android_apt_libraries
:
-
libstdc++6:i386
-
lib32z1
android_sys_image_url
:
https://s3.amazonaws.com/edx-testeng-tools/android/android-sysimage-23.tar.gz
android_sys_image_checksum
:
a111ad559000e91e1d8d9d76df83a6341cc8cbfc3608077380ab15f17b5d0033
playbooks/roles/android_sdk/tasks/main.yml
View file @
3807fd0b
...
...
@@ -65,3 +65,25 @@
state
:
link
owner
:
"
{{
android_user
}}"
group
:
"
{{
android_group
}}"
# TEMPORARY FIX TO https://code.google.com/p/android/issues/detail?id=228113
# The version of the Android ARM system image used by the mobile team for screenshot
# testing is currently unavailable. In the meantime, download a cached version on
# s3.
# Download cached version of Android Sys image, because it is no longer available
# via the Android SDK
-
name
:
Download cached version of Android Sys Image 23 from s3
shell
:
"
curl
-L
{{
android_sys_image_url
}}
-o
/var/tmp/android-sysimage-23.tar.gz"
args
:
creates
:
/var/tmp/android-sysimage-23.tar.gz
-
name
:
Verify checksum of downloaded android tarball
shell
:
"
sha256sum
/var/tmp/android-sysimage-23.tar.gz"
register
:
android_sys_image_download_checksum
-
assert
:
that
:
"
'{{
android_sys_image_checksum
}}'
in
android_sys_image_download_checksum.stdout"
-
name
:
Unzip Android system image
unarchive
:
src
:
/var/tmp/android-sysimage-23.tar.gz
dest
:
"
{{
android_home
}}/system-images"
creates
:
"
{{
android_home
}}/system-images/android-23"
copy
:
no
playbooks/roles/jenkins_worker/meta/main.yml
View file @
3807fd0b
...
...
@@ -40,7 +40,7 @@ dependencies:
-
{
package
:
'
extra-google-m2repository'
,
android_test_path
:
'
extras/google/m2repository'
}
-
{
package
:
'
extra-android-m2repository'
,
android_test_path
:
'
extras/android/m2repository'
}
-
{
package
:
'
sys-img-armeabi-v7a-android-21'
,
android_test_path
:
'
system-images/android-21/default/armeabi-v7a/'
}
-
{
package
:
'
sys-img-armeabi-v7a-android-23'
,
android_test_path
:
'
system-images/android-23/default/armeabi-v7a/'
}
#
- { package: 'sys-img-armeabi-v7a-android-23', android_test_path: 'system-images/android-23/default/armeabi-v7a/' }
# libraries needed for avd(android virtual device) emulation
android_apt_libraries
:
-
libstdc++6:i386
...
...
playbooks/roles/jenkins_worker/tasks/test_android_worker.yml
View file @
3807fd0b
...
...
@@ -37,3 +37,11 @@
assert
:
that
:
-
"
item.stat.exists
==
True"
# TEMP: until we either change to using a different system image OR google hosts
# the android 23 image again
-
name
:
Verify that cached Android sys image is installed
shell
:
"
stat
{{
android_home
}}/system-images/android-23"
register
:
android_23_stat
-
assert
:
that
:
-
"
android_23_stat.rc
==
0"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment