[render-test] Config CircleCi to run RenderTestApp on Firebase with Pixel4 (#15951)
This reverts commit d2413d4ffffd087b352b6e4edd6e6322a311bc07.
This commit is contained in:
28
circle.yml
28
circle.yml
@@ -5,6 +5,7 @@ workflows:
|
||||
mbgl-next:
|
||||
jobs:
|
||||
- next-sanity-checks
|
||||
- next-android-render-test-runner
|
||||
- next-build-template:
|
||||
name: next-android-armeabi-v7a-release
|
||||
executor_name: ubuntu-disco
|
||||
@@ -650,6 +651,33 @@ commands:
|
||||
fi
|
||||
|
||||
jobs:
|
||||
next-android-render-test-runner:
|
||||
executor: ubuntu-disco
|
||||
steps:
|
||||
- checkout
|
||||
- next-prepare
|
||||
- run:
|
||||
name: Build RenderTestRunner APK
|
||||
command: |
|
||||
cd render-test/android
|
||||
./gradlew --parallel --max-workers=8 -Pmapbox.abis=arm64-v8a app:assembleDebug app:assembleDebugAndroidTest
|
||||
- login-google-cloud-platform
|
||||
- run:
|
||||
name: Run RenderTestRunner Instrumentation Test on Firebase
|
||||
no_output_timeout: 20m
|
||||
command: |
|
||||
if [[ -n "${GCLOUD_SERVICE_ACCOUNT_JSON}" && -z "${SKIP_FIREBASE:-}" ]]; then
|
||||
gcloud firebase test android models list
|
||||
gcloud firebase test android run --type instrumentation \
|
||||
--app render-test/android/app/build/outputs/apk/debug/app-debug.apk \
|
||||
--test render-test/android/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk \
|
||||
--device-ids flame --os-version-ids 29 --locales en --orientations portrait --timeout 20m \
|
||||
--directories-to-pull /sdcard --results-dir render-test-app-${CIRCLE_BUILD_NUM}
|
||||
testResult=$(gsutil ls gs://test-lab-186672a0qp5bq-ycr70axads3nc/render-test-app-${CIRCLE_BUILD_NUM}/**/*.html | tail -1)
|
||||
mkdir -p /tmp/tests/render-test-app
|
||||
gsutil cp $testResult /tmp/tests/render-test-app | true
|
||||
fi
|
||||
- next-save
|
||||
next-sanity-checks:
|
||||
executor: ubuntu-disco
|
||||
steps:
|
||||
|
||||
@@ -7,6 +7,17 @@ android {
|
||||
applicationId = 'com.mapbox.mapboxsdk.maps.render_test_runner'
|
||||
minSdkVersion 14
|
||||
targetSdkVersion 28
|
||||
def abi = 'all'
|
||||
if (project.hasProperty('mapbox.abis')) {
|
||||
abi = project.getProperty("mapbox.abis")
|
||||
}
|
||||
ndk {
|
||||
if (abi != 'all') {
|
||||
abiFilters abi.split(' ')
|
||||
} else {
|
||||
abiFilters "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
|
||||
}
|
||||
}
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
arguments '-DANDROID_CCACHE=ccache'
|
||||
|
||||
Reference in New Issue
Block a user