summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--circle.yml214
1 files changed, 0 insertions, 214 deletions
diff --git a/circle.yml b/circle.yml
index 62f9963b93..212f55381b 100644
--- a/circle.yml
+++ b/circle.yml
@@ -162,29 +162,15 @@ workflows:
- linux-gcc8-release
config_params: '-G Xcode -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_ARCHITECTURES=arm64e -DCMAKE_OSX_SYSROOT=iphoneos -DMBGL_WITH_IOS_CCACHE=ON'
build_params: '--config Release'
- - android-render-test-runner:
- requires:
- - linux-gcc8-release
-# - android-unit-test-runner:
-# requires:
-# - linux-gcc8-release
- - ios-render-test-runner:
- requires:
- - linux-gcc8-release
- - ios-unit-test-runner:
- requires:
- - linux-gcc8-release
- baselines:
requires:
- android-arm64-v8a-release
- android-armeabi-v7a-release
- - android-render-test-runner
- android-x86-release
- android-x86_64-release
- linux-clang8-release
- linux-gcc8-release
- macos-xcode11-release
- - ios-render-test-runner
- trigger-pipeline:
requires:
- baselines
@@ -370,70 +356,6 @@ commands:
- store_artifacts:
path: /tmp/tests
destination: tests
- login-google-cloud-platform:
- steps:
- - run:
- name: Login Google Cloud Platform
- command: |
- echo "${GCLOUD_SERVICE_ACCOUNT_JSON}" > secret.json
- gcloud auth activate-service-account --key-file secret.json --project android-gl-native
- rm secret.json
- login-google-cloud-platform-ios:
- steps:
- - run:
- name: Login to IOS Google Cloud Platform
- command: |
- if [[ -n "${GCLOUD_SERVICE_ACCOUNT_JSON_IOS}" ]]; then
- echo "${GCLOUD_SERVICE_ACCOUNT_JSON_IOS}" > iosAccount.json
- gcloud auth activate-service-account --key-file iosAccount.json --project ios-mapbox-gl-native
- rm iosAccount.json
- fi
- prepare-ios-codesign-keychain:
- parameters:
- directory:
- type: string
- steps:
- - run:
- name: Prepare codesign keychain
- command: |
- cd << parameters.directory >>
- fastlane run create_keychain name:fastlane_keychain password:$FASTLANE_PASSWORD timeout:false unlock:true
- fastlane match
- security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k $FASTLANE_PASSWORD fastlane_keychain
- codesign-ios-test-runner:
- parameters:
- directory:
- type: string
- steps:
- - run:
- name: Codesign iOS TestApp for running on a physical device
- command: |
- cp -r << parameters.directory >>/codesigning build
- cd build
- ./codesigning/generate-entitlements.swift
- ./codesigning/codesign_all.sh
- codesign -dv --verbose=4 Release-iphoneos/*.app # for debugging that app is signed or not
- run-ios-test-app:
- parameters:
- directory:
- type: string
- steps:
- - run:
- name: Run iOS Test App on Firebase
- no_output_timeout: 30m
- command: |
- if [[ -n "${GCLOUD_SERVICE_ACCOUNT_JSON_IOS}" ]]; then
- # arrange files in a way Firebase expects it, and package them in a zip file
- cp << parameters.directory >>/*_iphoneos13.2-arm64e-release.xctestrun build
- cd build
- zip testapp.zip -r Release-iphoneos/*.app --quiet
- zip testapp.zip *_iphoneos13.2-arm64e-release.xctestrun
- gcloud firebase test ios models list
- gcloud firebase test ios run \
- --test testapp.zip \
- --device model=iphone11,version=13.3,locale=en,orientation=portrait --xcode-version=11.3.1 --timeout 30m \
- --verbosity=debug --no-record-video --results-dir ios-test-app-${CIRCLE_BUILD_NUM}
- fi
upload-coverage-results:
steps:
- run:
@@ -455,75 +377,6 @@ commands:
fi
jobs:
- ios-render-test-runner:
- executor: macos-11_3_1
- steps:
- - checkout
- - prepare
- - prepare-macos
- - prepare-ios-codesign-keychain:
- directory: render-test/ios
- - config:
- config_params: '-G Xcode -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphoneos -DMBGL_IOS_RENDER_TEST=ON -DCMAKE_OSX_ARCHITECTURES=arm64e -DMBGL_WITH_IOS_CCACHE=ON'
- - build:
- build_params: '--config Release'
- - codesign-ios-test-runner:
- directory: render-test/ios
- - login-google-cloud-platform-ios
- - run-ios-test-app:
- directory: render-test/ios
- - run:
- name: Retrieve Test Result from gcloud
- when: always
- command: |
- if [[ -n "${GCLOUD_SERVICE_ACCOUNT_JSON_IOS}" ]]; then
- testResult=$(gsutil ls -d gs://test-lab-hn7kwqcz3108z-hjm4qtbqqkymk/ios-test-app-${CIRCLE_BUILD_NUM}/iphone11-13.3-en-portrait/TestLogs/)
- mkdir -p render-test-app
- gsutil -m cp -r $testResult render-test-app
- cd render-test-app/TestLogs
- xcparse attachments *.xcresult && ls
- cd ../.. && mkdir -p /tmp/tests/ios-render-test
- if ls render-test-app/TestLogs/*.html 1> /dev/null 2>&1; then cp render-test-app/TestLogs/*.html /tmp/tests/ios-render-test; fi
- if [[ -n $(ls render-test-app/TestLogs/*.zip 2>/dev/null) ]]; then
- cp render-test-app/TestLogs/*.zip metrics/ios-render-test-runner/
- cp render-test-app/TestLogs/*.zip /tmp/tests/ios-render-test
- cd metrics/ios-render-test-runner/
- unzip -o *.zip
- rm -rf *.zip
- fi
- fi
- - save
- ios-unit-test-runner:
- executor: macos-11_3_1
- steps:
- - checkout
- - prepare
- - prepare-macos
- - prepare-ios-codesign-keychain:
- directory: test/ios
- - config:
- config_params: '-G Xcode -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphoneos -DMBGL_IOS_UNIT_TEST=ON -DCMAKE_OSX_ARCHITECTURES=arm64e -DMBGL_WITH_IOS_CCACHE=ON'
- - build:
- build_params: '--config Release'
- - codesign-ios-test-runner:
- directory: test/ios
- - login-google-cloud-platform-ios
- - run-ios-test-app:
- directory: test/ios
- - run:
- name: Retrieve Test Result from gcloud
- when: always
- command: |
- if [[ -n "${GCLOUD_SERVICE_ACCOUNT_JSON_IOS}" ]]; then
- testResult=$(gsutil ls -d gs://test-lab-hn7kwqcz3108z-hjm4qtbqqkymk/ios-test-app-${CIRCLE_BUILD_NUM}/iphone11-13.3-en-portrait/TestLogs/)
- mkdir -p unit-test-app
- gsutil -m cp -r $testResult unit-test-app
- cd unit-test-app/TestLogs
- xcparse attachments *.xcresult && ls
- cd ../.. && mkdir -p /tmp/tests/unit-test
- if ls unit-test-app/TestLogs/*.xml 1> /dev/null 2>&1; then cp unit-test-app/TestLogs/*.xml /tmp/tests/unit-test/results.xml; fi
- fi
- - save
android-api-breakage:
executor: ubuntu-eoan
steps:
@@ -538,73 +391,6 @@ jobs:
name: Build SDK
command: BUILDTYPE=Release make android-arm-v8
- save
- android-unit-test-runner:
- executor: ubuntu-eoan
- steps:
- - checkout
- - prepare
- - run:
- name: Build UnitTestRunner APK
- command: |
- cd test/android
- ./gradlew --parallel --max-workers=8 -Pmapbox.abis=arm64-v8a app:assembleRelease app:assembleAndroidTest
- - login-google-cloud-platform
- - run:
- name: Run UnitTestRunner on Firebase
- no_output_timeout: 20m
- command: |
- gcloud firebase test android models list
- gcloud firebase test android run --type instrumentation \
- --app test/android/app/build/outputs/apk/release/app-release.apk \
- --test test/android/app/build/outputs/apk/androidTest/release/app-release-androidTest.apk \
- --device-ids flame --os-version-ids 29 --locales en --orientations portrait --timeout 20m \
- --directories-to-pull /sdcard/test/results --results-dir unit-test-${CIRCLE_BUILD_NUM} \
- --no-record-video --no-performance-metrics
- - run:
- name: Retrieve Test Result from gcloud
- when: always
- command: |
- testResult=$(gsutil ls gs://test-lab-186672a0qp5bq-ycr70axads3nc/unit-test-${CIRCLE_BUILD_NUM}/**/results/results.xml)
- mkdir -p /tmp/tests/unit-test
- gsutil cp $testResult /tmp/tests/unit-test
- - save
- android-render-test-runner:
- executor: ubuntu-eoan
- steps:
- - checkout
- - prepare
- - run:
- name: Build RenderTestRunner APK
- command: |
- cd render-test/android
- ./gradlew --parallel --max-workers=8 -Pmapbox.abis=arm64-v8a app:assembleRelease app:assembleAndroidTest
- - login-google-cloud-platform
- - run:
- name: Run RenderTestRunner Instrumentation Test on Firebase
- no_output_timeout: 20m
- command: |
- gcloud firebase test android models list
- gcloud firebase test android run --type instrumentation \
- --app render-test/android/app/build/outputs/apk/release/app-release.apk \
- --test render-test/android/app/build/outputs/apk/androidTest/release/app-release-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} \
- --no-record-video --no-performance-metrics
- - run:
- name: Retrieve TestResult from gcloud
- when: always
- command: |
- testResult=$(gsutil ls gs://test-lab-186672a0qp5bq-ycr70axads3nc/render-test-app-${CIRCLE_BUILD_NUM}/**/*.html)
- mkdir -p /tmp/tests/render-test-app
- gsutil cp $testResult /tmp/tests/render-test-app
- - run:
- name: Retrieve Rebaselined Metrics from gcloud
- command: |
- metricsResult=$(gsutil ls -d gs://test-lab-186672a0qp5bq-ycr70axads3nc/render-test-app-${CIRCLE_BUILD_NUM}/*/*/sdcard/baselines/*) || true
- gsutil -m cp -r $metricsResult metrics/android-render-test-runner/ || true
- mkdir -p /tmp/tests/render-test-app/rebaselined_metrics
- gsutil -m cp -r $metricsResult /tmp/tests/render-test-app/rebaselined_metrics || true
- - save
trigger-pipeline:
executor: ubuntu-eoan
parameters: