Skip to content

Commit d0e8bcf

Browse files
rozzajyemin
authored andcommitted
Android testing updates
Update evergreen to store the download logs Set the android license hash JAVA-3146
1 parent fb3fb44 commit d0e8bcf

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.evergreen/.evg.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,26 @@ functions:
121121
permissions: public-read
122122
content_type: ${content_type|application/x-gzip}
123123

124+
"upload android logs":
125+
# Compress and upload the entire build directory
126+
- command: archive.targz_pack
127+
params:
128+
# Example: mongo_c_driver_releng_9dfb7d741efbca16faa7859b9349d7a942273e43_16_11_08_19_29_52.tar.gz
129+
target: "${build_id}.tar.gz"
130+
source_dir: ${PROJECT_DIRECTORY}/.android/download_logs
131+
include:
132+
- "./**"
133+
- command: s3.put
134+
params:
135+
aws_key: ${aws_key}
136+
aws_secret: ${aws_secret}
137+
local_file: ${build_id}.tar.gz
138+
# Example: /mciuploads/${UPLOAD_BUCKET}/gcc49/9dfb7d741efbca16faa7859b9349d7a942273e43/debug-compile-nosasl-nossl/mongo_c_driver_releng_9dfb7d741efbca16faa7859b9349d7a942273e43_16_11_08_19_29_52.tar.gz
139+
remote_file: ${UPLOAD_BUCKET}/${build_variant}/${revision}/${task_name}/${build_id}.tar.gz
140+
bucket: mciuploads
141+
permissions: public-read
142+
content_type: ${content_type|application/x-gzip}
143+
124144
"exec script" :
125145
- command: shell.exec
126146
type: test
@@ -431,6 +451,7 @@ tasks:
431451
- name: "embedded-test-android"
432452
commands:
433453
- func: "run embedded tests android"
454+
- func: "upload android logs"
434455

435456
- name: "atlas-test"
436457
commands:

.evergreen/run-embedded-tests-android.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ if [ ! -e $SDK_HOME ]; then
1515
mkdir -p $DOWNLOAD_LOGS
1616
(
1717
cd $SDK_HOME
18+
19+
mkdir -p "$SDK_HOME/licenses"
20+
echo "24333f8a63b6825ea9c5514f83c2829b004d1fee" > "$SDK_HOME/licenses/android-sdk-license"
21+
1822
export JAVA_HOME="/opt/java/jdk8"
1923

2024
export ANDROID_HOME=${SDK_HOME}

0 commit comments

Comments
 (0)