summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnand Thakker <github@anandthakker.net>2018-07-25 11:00:11 -0400
committerKonstantin Käfer <mail@kkaefer.com>2018-09-11 11:43:54 +0200
commitbc9b2249169276987af4ed91b29bf8a2fd65e15e (patch)
tree4e37bbbdae869fa631257df046fa7bbce23cbd5d
parent4a3c4edb59b6881a30056531bc71e52295ab1cb0 (diff)
downloadqtlocation-mapboxgl-bc9b2249169276987af4ed91b29bf8a2fd65e15e.tar.gz
[build] add android-gnustl-arm-v7 CI job
-rw-r--r--circle.yml81
1 files changed, 81 insertions, 0 deletions
diff --git a/circle.yml b/circle.yml
index c03b52e12f..190578b1dc 100644
--- a/circle.yml
+++ b/circle.yml
@@ -10,6 +10,7 @@ workflows:
branches:
ignore: master
- android-debug-arm-v7
+ - android-gnustl-arm-v7
- android-release:
filters:
tags:
@@ -469,6 +470,86 @@ jobs:
path: platform/android/MapboxGLAndroidSDKTestApp/lint-baseline.xml
# ------------------------------------------------------------------------------
+ android-gnustl-arm-v7:
+ docker:
+ - image: mbgl/feb0443038:android-ndk-r17
+ resource_class: large
+ working_directory: /src
+ environment:
+ LIBSYSCONFCPUS: 4
+ JOBS: 4
+ BUILDTYPE: Debug
+ IS_LOCAL_DEVELOPMENT: false
+ MBGL_ANDROID_STL: gnustl_shared
+ steps:
+ - checkout
+ - *restore-node_modules-cache
+ - *npm-install
+ - *prepare-environment
+ - *prepare-ccache
+ - *restore-mason_packages-cache
+ - *restore-ccache
+ - *restore-gradle-cache
+ - *reset-ccache-stats
+ - run:
+ name: Check code style
+ command: make android-check
+ - run:
+ name: Build libmapbox-gl.so for arm-v7
+ command: make android-lib-arm-v7
+ - run:
+ name: Compile Core tests for arm-v7
+ command: make android-test-lib-arm-v7
+ - run:
+ name: Test phone module
+ command: make run-android-unit-test
+ - run:
+ name: Generate Espresso sanity tests
+ command: make test-code-android
+ - run:
+ name: Build Test APK
+ command: |
+ echo "${MAPBOX_DEVELOPER_CONFIG_XML}" > platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/developer-config.xml
+ make android-ui-test-arm-v7
+ - *show-ccache-stats
+ - *save-node_modules-cache
+ - *save-mason_packages-cache
+ - *save-ccache
+ - *save-gradle-cache
+ - run:
+ name: Log in to Google Cloud Platform
+ shell: /bin/bash -euo pipefail
+ command: |
+ echo "${GCLOUD_SERVICE_ACCOUNT_JSON}" > secret.json
+ gcloud auth activate-service-account --key-file secret.json --project android-gl-native
+ rm secret.json
+ - run:
+ name: Run instrumentation tests on Firebase
+ no_output_timeout: 1200
+ shell: /bin/bash -euo pipefail
+ command: |
+ gcloud firebase test android models list
+ gcloud firebase test android run --type instrumentation \
+ --app platform/android/MapboxGLAndroidSDKTestApp/build/outputs/apk/debug/MapboxGLAndroidSDKTestApp-debug.apk \
+ --test platform/android/MapboxGLAndroidSDKTestApp/build/outputs/apk/androidTest/debug/MapboxGLAndroidSDKTestApp-debug-androidTest.apk \
+ --device-ids sailfish --os-version-ids 26 --locales en --orientations portrait --timeout 20m
+ - store_artifacts:
+ path: platform/android/MapboxGLAndroidSDKTestApp/build/outputs/apk/debug
+ destination: .
+ - store_artifacts:
+ path: platform/android/MapboxGLAndroidSDK/build/reports/lint-results.html
+ - store_artifacts:
+ path: platform/android/MapboxGLAndroidSDK/build/reports/lint-results.xml
+ - store_artifacts:
+ path: platform/android/MapboxGLAndroidSDK/lint-baseline.xml
+ - store_artifacts:
+ path: platform/android/MapboxGLAndroidSDKTestApp/build/reports/lint-results.html
+ - store_artifacts:
+ path: platform/android/MapboxGLAndroidSDKTestApp/build/reports/lint-results.xml
+ - store_artifacts:
+ path: platform/android/MapboxGLAndroidSDKTestApp/lint-baseline.xml
+
+# ------------------------------------------------------------------------------
android-release:
docker:
- image: mbgl/feb0443038:android-ndk-r17