Remove obsolete CI configurations (#219)
This commit is contained in:
@@ -1,371 +0,0 @@
|
||||
version: 2.1
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
mapbox-gl-native-android:
|
||||
jobs:
|
||||
- android-arm-template:
|
||||
name: android-debug-arm-v8
|
||||
- android-release:
|
||||
filters:
|
||||
tags:
|
||||
only: /android-v.*/
|
||||
|
||||
commands:
|
||||
npm-install:
|
||||
steps:
|
||||
- run:
|
||||
name: npm install
|
||||
command: npm install --ignore-scripts
|
||||
npm-install-vendor:
|
||||
steps:
|
||||
- run:
|
||||
name: npm install
|
||||
command: cd vendor/mapbox-gl-native && npm install --ignore-scripts
|
||||
prepare-ccache:
|
||||
steps:
|
||||
- run:
|
||||
name: Prepare ccache
|
||||
command: |
|
||||
# CircleCI doesn't have any way to embed arbitrary environment variables or command output
|
||||
# into cache keys, so we're using the workaround of writing the desired content to a file,
|
||||
# and then using `{{ checksum "filename" }}` in the cache key.
|
||||
echo "$CIRCLE_BRANCH"
|
||||
echo "$CIRCLE_BRANCH" > .circle-branch
|
||||
echo "$CIRCLE_SHA1"
|
||||
echo "$CIRCLE_SHA1" > .circle-sha1
|
||||
echo "$CIRCLE_TARGET_BRANCH"
|
||||
echo "${CIRCLE_TARGET_BRANCH:master}" > .circle-target-branch
|
||||
echo "$CIRCLE_MERGE_BASE"
|
||||
echo "${CIRCLE_MERGE_BASE:master}" > .circle-merge-base
|
||||
ccache --clear
|
||||
reset-ccache-stats:
|
||||
steps:
|
||||
- run:
|
||||
name: Clear ccache statistics
|
||||
command: |
|
||||
ccache --zero-stats
|
||||
ccache --max-size=2G
|
||||
ccache --show-stats
|
||||
show-ccache-stats:
|
||||
steps:
|
||||
- run:
|
||||
name: Show ccache statistics
|
||||
command: ccache --show-stats
|
||||
save-node_modules-cache:
|
||||
steps:
|
||||
- save_cache:
|
||||
name: Save node_modules cache
|
||||
key: 'node_modules/v1/{{ arch }}/{{ checksum "package.json" }}'
|
||||
paths: [ "node_modules" ]
|
||||
restore-node_modules-cache:
|
||||
steps:
|
||||
- restore_cache:
|
||||
name: Restore node_modules cache
|
||||
keys:
|
||||
- 'node_modules/v1/{{ arch }}/{{ checksum "package.json" }}'
|
||||
- 'node_modules/v1/{{ arch }}'
|
||||
save-ccache:
|
||||
steps:
|
||||
- save_cache:
|
||||
name: Save ccache
|
||||
key: 'ccache/v1/{{ arch }}/{{ .Environment.CIRCLE_JOB }}/{{ checksum ".circle-branch" }}/{{ checksum ".circle-sha1" }}'
|
||||
paths: [ "~/.ccache" ]
|
||||
restore-ccache:
|
||||
steps:
|
||||
- restore_cache:
|
||||
name: Restore ccache
|
||||
keys:
|
||||
- 'ccache/v1/{{ arch }}/{{ .Environment.CIRCLE_JOB }}/{{ checksum ".circle-branch" }}/{{ checksum ".circle-sha1" }}'
|
||||
- 'ccache/v1/{{ arch }}/{{ .Environment.CIRCLE_JOB }}/{{ checksum ".circle-branch" }}'
|
||||
- 'ccache/v1/{{ arch }}/{{ .Environment.CIRCLE_JOB }}/{{ checksum ".circle-target-branch" }}/{{ checksum ".circle-merge-base" }}'
|
||||
- 'ccache/v1/{{ arch }}/{{ .Environment.CIRCLE_JOB }}/{{ checksum ".circle-target-branch" }}'
|
||||
- 'ccache/v1/{{ arch }}/{{ .Environment.CIRCLE_JOB }}'
|
||||
save-gradle-cache:
|
||||
steps:
|
||||
- save_cache:
|
||||
name: Save gradle cache
|
||||
key: 'gradle/v1/{{ checksum "gradle/dependencies.gradle" }}/{{ checksum "build.gradle" }}/{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}'
|
||||
paths: [ "/root/.gradle" ]
|
||||
restore-gradle-cache:
|
||||
steps:
|
||||
- restore_cache:
|
||||
name: Restore gradle cache
|
||||
keys:
|
||||
- 'gradle/v1/{{ checksum "gradle/dependencies.gradle" }}/{{ checksum "build.gradle" }}/{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}'
|
||||
- 'gradle/v1'
|
||||
prepare-environment:
|
||||
steps:
|
||||
- run:
|
||||
name: Prepare environment
|
||||
command: touch "$BASH_ENV" && ./vendor/mapbox-gl-native/scripts/environment.js | tee -a "$BASH_ENV"
|
||||
install-dependencies:
|
||||
parameters:
|
||||
node_modules:
|
||||
type: boolean
|
||||
default: true
|
||||
ccache:
|
||||
type: boolean
|
||||
default: true
|
||||
gradle:
|
||||
type: boolean
|
||||
default: false
|
||||
steps:
|
||||
- checkout
|
||||
- when:
|
||||
condition: << parameters.node_modules >>
|
||||
steps: [ restore-node_modules-cache, npm-install ]
|
||||
- when:
|
||||
condition: << parameters.ccache >>
|
||||
steps: [ prepare-ccache, restore-ccache, reset-ccache-stats ]
|
||||
- when:
|
||||
condition: << parameters.gradle >>
|
||||
steps: [ restore-gradle-cache ]
|
||||
save-dependencies:
|
||||
parameters:
|
||||
node_modules:
|
||||
type: boolean
|
||||
default: true
|
||||
ccache:
|
||||
type: boolean
|
||||
default: true
|
||||
gradle:
|
||||
type: boolean
|
||||
default: false
|
||||
steps:
|
||||
- when:
|
||||
condition: << parameters.node_modules >>
|
||||
steps: [ save-node_modules-cache ]
|
||||
- when:
|
||||
condition: << parameters.ccache >>
|
||||
steps: [ save-ccache, show-ccache-stats ]
|
||||
- when:
|
||||
condition: << parameters.gradle >>
|
||||
steps: [ save-gradle-cache ]
|
||||
setup-llvm-symbolizer:
|
||||
steps:
|
||||
- run:
|
||||
name: Environment Setup
|
||||
command: |
|
||||
# LLVM has a hard check for "llvm-symbolizer" and doesn't support suffixed executables
|
||||
ln -s /usr/bin/llvm-symbolizer-* /usr/bin/llvm-symbolizer
|
||||
# We'll use tee to redirect stderr to a file so we can check for sanitiziation
|
||||
# https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1059947
|
||||
sed -i 's/"$@" 2>&1/"$@"/' /usr/bin/xvfb-run
|
||||
configure-cmake:
|
||||
steps:
|
||||
- run:
|
||||
name: CMake configuration step
|
||||
command: |
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake -DWITH_COVERAGE=${WITH_COVERAGE:0} -DWITH_OSMESA=${WITH_OSMESA:0} -DWITH_EGL=${WITH_EGL:0} ..
|
||||
cd ..
|
||||
login-google-cloud-platform:
|
||||
steps:
|
||||
- run:
|
||||
name: Log in to Google Cloud Platform
|
||||
command: |
|
||||
if [[ -n "${GLCLOUD_SERVICE_JSON}" ]]; then
|
||||
echo "${GLCLOUD_SERVICE_JSON}" > secret.json
|
||||
gcloud auth activate-service-account --key-file secret.json --project mapbox-gl-native-android
|
||||
rm secret.json
|
||||
fi
|
||||
generate-api-javadoc:
|
||||
steps:
|
||||
- run:
|
||||
name: Generate Maps SDK API javadoc and transfer to `/android-docs`
|
||||
command: |
|
||||
export VERSION_TAG=${CIRCLE_TAG}
|
||||
export GITHUB_TOKEN=${DANGER_GITHUB_API_TOKEN}
|
||||
export DOCS_REPO="android-docs"
|
||||
bash scripts/trigger-maps-documentation-deploy-steps.sh
|
||||
|
||||
jobs:
|
||||
# ------------------------------------------------------------------------------
|
||||
android-arm-template:
|
||||
parameters:
|
||||
stl:
|
||||
type: string
|
||||
default: "c++_static"
|
||||
image:
|
||||
type: string
|
||||
default: android-ndk-r21b:a111a5b966
|
||||
firebase_device_id:
|
||||
type: string
|
||||
default: sailfish
|
||||
firebase_device_os:
|
||||
type: string
|
||||
default: "26"
|
||||
abi:
|
||||
type: string
|
||||
default: "arm-v8"
|
||||
docker:
|
||||
- image: mbgl/<< parameters.image >>
|
||||
resource_class: xlarge
|
||||
working_directory: /src
|
||||
environment:
|
||||
LIBSYSCONFCPUS: 8
|
||||
JOBS: 8
|
||||
BUILDTYPE: Debug
|
||||
IS_LOCAL_DEVELOPMENT: false
|
||||
MBGL_ANDROID_STL: << parameters.stl >>
|
||||
steps:
|
||||
- install-dependencies: { gradle: true }
|
||||
- run:
|
||||
name: Initialize vendor submodules
|
||||
command: git submodule update --init --recursive vendor
|
||||
- run:
|
||||
name: Check code style
|
||||
command: make android-check
|
||||
- run:
|
||||
name: Run Android unit tests
|
||||
command: make run-android-unit-test
|
||||
- run:
|
||||
name: Build libmapbox-gl.so for << parameters.abi >>
|
||||
command: make android-lib-<< parameters.abi >>
|
||||
- run:
|
||||
name: Generate Espresso sanity tests
|
||||
command: make test-code-android
|
||||
- run:
|
||||
name: Build Test APK
|
||||
command: |
|
||||
if [ -n "${MAPBOX_DEVELOPER_CONFIG_XML}" ]; then
|
||||
echo "${MAPBOX_DEVELOPER_CONFIG_XML}" > MapboxGLAndroidSDKTestApp/src/main/res/values/developer-config.xml
|
||||
make android-ui-test-<< parameters.abi >>
|
||||
fi
|
||||
- save-dependencies: { gradle: true }
|
||||
- login-google-cloud-platform
|
||||
- run:
|
||||
name: Run instrumentation tests on Firebase
|
||||
no_output_timeout: 20m
|
||||
command: |
|
||||
if [[ -n "${GLCLOUD_SERVICE_JSON}" ]]; then
|
||||
gcloud firebase test android models list
|
||||
gcloud firebase test android run --type instrumentation \
|
||||
--app MapboxGLAndroidSDKTestApp/build/outputs/apk/debug/MapboxGLAndroidSDKTestApp-debug.apk \
|
||||
--test MapboxGLAndroidSDKTestApp/build/outputs/apk/androidTest/debug/MapboxGLAndroidSDKTestApp-debug-androidTest.apk \
|
||||
--device-ids << parameters.firebase_device_id >> --os-version-ids << parameters.firebase_device_os >> --locales en --orientations portrait --timeout 20m \
|
||||
--environment-variables coverage=true,coverageFile="/sdcard/coverage.ec" --directories-to-pull /sdcard --results-dir mapbox-android-sdk-${CIRCLE_BUILD_NUM}
|
||||
fi
|
||||
- store_artifacts:
|
||||
path: MapboxGLAndroidSDKTestApp/build/outputs/apk/debug
|
||||
destination: .
|
||||
- store_artifacts:
|
||||
path: MapboxGLAndroidSDK/build/reports/lint-results.html
|
||||
- store_artifacts:
|
||||
path: MapboxGLAndroidSDK/build/reports/lint-results.xml
|
||||
- store_artifacts:
|
||||
path: MapboxGLAndroidSDK/lint-baseline.xml
|
||||
- store_artifacts:
|
||||
path: MapboxGLAndroidSDKTestApp/build/reports/lint-results.html
|
||||
- store_artifacts:
|
||||
path: MapboxGLAndroidSDKTestApp/build/reports/lint-results.xml
|
||||
- store_artifacts:
|
||||
path: MapboxGLAndroidSDKTestApp/lint-baseline.xml
|
||||
- store_artifacts:
|
||||
path: MapboxGLAndroidSDK/build/intermediates/cmake/debug/obj
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
android-release:
|
||||
docker:
|
||||
- image: mbgl/android-ndk-r21b:a111a5b966
|
||||
resource_class: xlarge
|
||||
working_directory: /src
|
||||
environment:
|
||||
LIBSYSCONFCPUS: 8
|
||||
JOBS: 8
|
||||
BUILDTYPE: Release
|
||||
IS_LOCAL_DEVELOPMENT: false
|
||||
steps:
|
||||
- install-dependencies: { gradle: true }
|
||||
- run:
|
||||
name: Initialize vendor submodules
|
||||
command: git submodule update --init --recursive vendor
|
||||
- run:
|
||||
name: Android nitpick
|
||||
command: make run-android-nitpick
|
||||
- run:
|
||||
name: Trigger android benchmark run
|
||||
command: |
|
||||
if [ -n "${MOBILE_METRICS_TOKEN}" ]; then
|
||||
if [[ $CIRCLE_BRANCH == master ]]; then
|
||||
curl -u $MOBILE_METRICS_TOKEN -d build_parameters[CIRCLE_JOB]=android-benchmark https://circleci.com/api/v1.1/project/github/mapbox/mobile-metrics/tree/master
|
||||
fi
|
||||
fi
|
||||
- run:
|
||||
name: Trigger android binary size check
|
||||
command: |
|
||||
if [ -n "${MOBILE_METRICS_TOKEN}" ]; then
|
||||
if [[ $CIRCLE_BRANCH == master ]]; then
|
||||
curl -u ${MOBILE_METRICS_TOKEN}: -d build_parameters[CIRCLE_JOB]=android-binary-size-hydrogen https://circleci.com/api/v1.1/project/github/mapbox/mobile-metrics/tree/master
|
||||
fi
|
||||
fi
|
||||
- run:
|
||||
name: Generate Maven credentials
|
||||
command: |
|
||||
if [ -n "${BINTRAY_USER}" ]; then
|
||||
echo "BINTRAY_USER=$BINTRAY_USER
|
||||
BINTRAY_API_KEY=$BINTRAY_API_KEY
|
||||
GPG_PASSPHRASE=$GPG_PASSPHRASE"
|
||||
fi
|
||||
- run:
|
||||
name: Update version name
|
||||
command: |
|
||||
if [[ $CIRCLE_TAG == android-v* ]]; then
|
||||
sed -i -e "s/^VERSION_NAME=.*/VERSION_NAME=${CIRCLE_TAG:9}/" MapboxGLAndroidSDK/gradle.properties
|
||||
fi
|
||||
- run:
|
||||
name: Build package
|
||||
command: make apackage
|
||||
- run:
|
||||
name: Build release Test App
|
||||
command: |
|
||||
if [ -n "${MAPBOX_DEVELOPER_CONFIG_XML}" ]; then
|
||||
echo "${MAPBOX_DEVELOPER_CONFIG_XML}" > MapboxGLAndroidSDKTestApp/src/main/res/values/developer-config.xml
|
||||
make android
|
||||
fi
|
||||
- run:
|
||||
name: Generate javadoc
|
||||
command: make android-javadoc
|
||||
- save-dependencies: { gradle: true }
|
||||
- login-google-cloud-platform
|
||||
- run:
|
||||
name: Run robotest of release Test App on Firebase
|
||||
no_output_timeout: 10m
|
||||
command: |
|
||||
if [[ -n "${GLCLOUD_SERVICE_JSON}" ]]; then
|
||||
if [[ $CIRCLE_BRANCH != master && $CIRCLE_TAG != android-v* ]]; then
|
||||
gcloud firebase test android run --type robo \
|
||||
--app MapboxGLAndroidSDKTestApp/build/outputs/apk/release/MapboxGLAndroidSDKTestApp-release.apk \
|
||||
--device-ids sailfish --os-version-ids "26" --locales en --orientations portrait --timeout 90s
|
||||
fi
|
||||
fi
|
||||
- run:
|
||||
name: archive debugable objects
|
||||
command: |
|
||||
cd MapboxGLAndroidSDK/build/intermediates/cmake/release && tar -zcvf debuggable-objects.tar.gz obj && cd -
|
||||
- store_artifacts:
|
||||
path: MapboxGLAndroidSDKTestApp/build/outputs/apk/release
|
||||
destination: .
|
||||
- store_artifacts:
|
||||
path: MapboxGLAndroidSDK/build/intermediates/cmake/release/debuggable-objects.tar.gz
|
||||
- deploy:
|
||||
name: Publish to Bintray
|
||||
command: |
|
||||
if [[ $CIRCLE_BRANCH == master ]] || [[ $CIRCLE_BRANCH == release-* ]] || [[ $CIRCLE_TAG == android-v* ]]; then
|
||||
version=$(cat MapboxGLAndroidSDK/gradle.properties | grep "VERSION_NAME")
|
||||
if [[ $version != *"SNAPSHOT"* ]]; then
|
||||
make run-android-upload-to-bintray
|
||||
else
|
||||
make run-android-upload-to-artifactory
|
||||
fi
|
||||
fi
|
||||
- run:
|
||||
name: upload debuggable objects to release tag
|
||||
command: |
|
||||
if [[ $CIRCLE_TAG == android-v* ]]; then
|
||||
export GITHUB_TOKEN=${DANGER_GITHUB_API_TOKEN}
|
||||
python3 scripts/upload-to-github-release.py --file MapboxGLAndroidSDK/build/intermediates/cmake/release/debuggable-objects.tar.gz --release $CIRCLE_TAG --project mapbox-gl-native-android
|
||||
fi
|
||||
- generate-api-javadoc
|
||||
@@ -1,544 +0,0 @@
|
||||
version: 2.1
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
mbgl-legacy:
|
||||
jobs:
|
||||
#
|
||||
# Naming convention: {platform}-{additional description}-{build type}
|
||||
# - {platform} is the client platform/framework, which may differ from
|
||||
# the build platform. Specify both if applicable, e.g., "qt5-macos".
|
||||
# - {additional description} optionally describes the compiler or other
|
||||
# unique aspect of the build environment.
|
||||
# - {build type} is typically "debug" or "release".
|
||||
#
|
||||
- ios-debug
|
||||
- ios-debug-xcode10
|
||||
- ios-release-template:
|
||||
name: ios-release
|
||||
- ios-trigger-metrics:
|
||||
requires:
|
||||
- ios-release
|
||||
filters:
|
||||
branches:
|
||||
only: master
|
||||
- ios-release-tag:
|
||||
filters:
|
||||
tags:
|
||||
only: /ios-.*/
|
||||
branches:
|
||||
ignore: /.*/
|
||||
- macos-debug
|
||||
nightly:
|
||||
triggers:
|
||||
- schedule:
|
||||
cron: "0 5 * * *"
|
||||
filters:
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
jobs:
|
||||
- metrics-nightly
|
||||
- ios-release-template:
|
||||
name: ios-release-nightly
|
||||
- ios-sanitize-nightly
|
||||
- ios-sanitize-address-nightly
|
||||
- ios-static-analyzer-nightly
|
||||
- ios-static-analyzer-nightly-xcode10
|
||||
|
||||
commands:
|
||||
npm-install:
|
||||
steps:
|
||||
- run:
|
||||
name: npm install
|
||||
command: npm install --ignore-scripts
|
||||
prepare-environment:
|
||||
steps:
|
||||
- run:
|
||||
name: Prepare environment
|
||||
command: touch "$BASH_ENV" && ./scripts/environment.js | tee -a "$BASH_ENV"
|
||||
prepare-submodules:
|
||||
steps:
|
||||
- run:
|
||||
name: Prepare submodules
|
||||
command: git submodule sync && git submodule update --init --recursive
|
||||
prepare-ccache:
|
||||
steps:
|
||||
- run:
|
||||
name: Prepare ccache
|
||||
command: |
|
||||
# CircleCI doesn't have any way to embed arbitrary environment variables or command output
|
||||
# into cache keys, so we're using the workaround of writing the desired content to a file,
|
||||
# and then using `{{ checksum "filename" }}` in the cache key.
|
||||
echo "$CIRCLE_BRANCH"
|
||||
echo "$CIRCLE_BRANCH" > .circle-branch
|
||||
echo "$CIRCLE_SHA1"
|
||||
echo "$CIRCLE_SHA1" > .circle-sha1
|
||||
echo "$CIRCLE_TARGET_BRANCH"
|
||||
echo "${CIRCLE_TARGET_BRANCH:master}" > .circle-target-branch
|
||||
echo "$CIRCLE_MERGE_BASE"
|
||||
echo "${CIRCLE_MERGE_BASE:master}" > .circle-merge-base
|
||||
ccache --clear
|
||||
reset-ccache-stats:
|
||||
steps:
|
||||
- run:
|
||||
name: Clear ccache statistics
|
||||
command: |
|
||||
ccache --zero-stats
|
||||
ccache --max-size=2G
|
||||
ccache --show-stats
|
||||
show-ccache-stats:
|
||||
steps:
|
||||
- run:
|
||||
name: Show ccache statistics
|
||||
command: ccache --show-stats
|
||||
|
||||
|
||||
save-node_modules-cache:
|
||||
steps:
|
||||
- save_cache:
|
||||
name: Save node_modules cache
|
||||
key: 'node_modules/v1/{{ arch }}/{{ checksum "package.json" }}'
|
||||
paths: [ "node_modules" ]
|
||||
restore-node_modules-cache:
|
||||
steps:
|
||||
- restore_cache:
|
||||
name: Restore node_modules cache
|
||||
keys:
|
||||
- 'node_modules/v1/{{ arch }}/{{ checksum "package.json" }}'
|
||||
- 'node_modules/v1/{{ arch }}'
|
||||
save-ccache:
|
||||
steps:
|
||||
- save_cache:
|
||||
name: Save ccache
|
||||
key: 'ccache/v1/{{ arch }}/{{ .Environment.CIRCLE_JOB }}/{{ checksum ".circle-branch" }}/{{ checksum ".circle-sha1" }}'
|
||||
paths: [ "~/.ccache" ]
|
||||
restore-ccache:
|
||||
steps:
|
||||
- restore_cache:
|
||||
name: Restore ccache
|
||||
keys:
|
||||
- 'ccache/v1/{{ arch }}/{{ .Environment.CIRCLE_JOB }}/{{ checksum ".circle-branch" }}/{{ checksum ".circle-sha1" }}'
|
||||
- 'ccache/v1/{{ arch }}/{{ .Environment.CIRCLE_JOB }}/{{ checksum ".circle-branch" }}'
|
||||
- 'ccache/v1/{{ arch }}/{{ .Environment.CIRCLE_JOB }}/{{ checksum ".circle-target-branch" }}/{{ checksum ".circle-merge-base" }}'
|
||||
- 'ccache/v1/{{ arch }}/{{ .Environment.CIRCLE_JOB }}/{{ checksum ".circle-target-branch" }}'
|
||||
- 'ccache/v1/{{ arch }}/{{ .Environment.CIRCLE_JOB }}'
|
||||
|
||||
|
||||
install-dependencies:
|
||||
parameters:
|
||||
node_modules:
|
||||
type: boolean
|
||||
default: true
|
||||
ccache:
|
||||
type: boolean
|
||||
default: true
|
||||
steps:
|
||||
- checkout
|
||||
- prepare-submodules
|
||||
- when:
|
||||
condition: << parameters.node_modules >>
|
||||
steps: [ restore-node_modules-cache, npm-install ]
|
||||
- prepare-environment
|
||||
- when:
|
||||
condition: << parameters.ccache >>
|
||||
steps: [ prepare-ccache, restore-ccache, reset-ccache-stats ]
|
||||
save-dependencies:
|
||||
parameters:
|
||||
node_modules:
|
||||
type: boolean
|
||||
default: true
|
||||
ccache:
|
||||
type: boolean
|
||||
default: true
|
||||
steps:
|
||||
- when:
|
||||
condition: << parameters.node_modules >>
|
||||
steps: [ save-node_modules-cache ]
|
||||
- when:
|
||||
condition: << parameters.ccache >>
|
||||
steps: [ save-ccache, show-ccache-stats ]
|
||||
|
||||
|
||||
configure-cmake:
|
||||
steps:
|
||||
- run:
|
||||
name: CMake configuration step
|
||||
command: |
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake -DWITH_COVERAGE=${WITH_COVERAGE:0} -DWITH_OSMESA=${WITH_OSMESA:0} -DWITH_EGL=${WITH_EGL:0} ..
|
||||
cd ..
|
||||
build-ios-test:
|
||||
steps:
|
||||
- run:
|
||||
name: Build ios-test
|
||||
command: make ios-test
|
||||
no_output_timeout: 20m
|
||||
build-ios-integration-test:
|
||||
steps:
|
||||
- run:
|
||||
name: Build ios-integration-test
|
||||
command: make ios-integration-test
|
||||
build-macos-test:
|
||||
steps:
|
||||
- run:
|
||||
name: Build macos-test
|
||||
command: make macos-test
|
||||
no_output_timeout: 20m
|
||||
|
||||
|
||||
check-public-symbols:
|
||||
steps:
|
||||
- run:
|
||||
name: Check public symbols
|
||||
command: make darwin-check-public-symbols
|
||||
|
||||
|
||||
install-ios-packaging-dependencies:
|
||||
steps:
|
||||
- run:
|
||||
name: Install iOS packaging dependencies
|
||||
command: |
|
||||
echo "ruby-2.6" > ~/.ruby-version
|
||||
./platform/ios/scripts/install-packaging-dependencies.sh
|
||||
background: true
|
||||
|
||||
install-macos-dependencies:
|
||||
steps:
|
||||
- run:
|
||||
name: Install macOS dependencies
|
||||
command: brew install cmake ccache pkg-config glfw3
|
||||
|
||||
trigger-metrics:
|
||||
steps:
|
||||
- run:
|
||||
name: Trigger metrics
|
||||
command: |
|
||||
if [ -n "${MOBILE_METRICS_TOKEN}" ]; then
|
||||
bash -c "curl -X POST --header \"Content-Type: application/json\" --data '{\"parameters\": {\"run_ios_maps_benchmark\": true, \"ci_ref\": $CIRCLE_BUILD_NUM }, \"branch\": \"master\" }' https://circleci.com/api/v2/project/github/mapbox/mobile-metrics/pipeline?circle-token=${MOBILE_METRICS_TOKEN}"
|
||||
else
|
||||
echo "MOBILE_METRICS_TOKEN not provided"
|
||||
fi
|
||||
|
||||
collect-xcode-build-logs:
|
||||
steps:
|
||||
- run:
|
||||
name: Collect Xcode build logs
|
||||
when: always
|
||||
command: |
|
||||
export XCODE_LOG_DIR=build/logs
|
||||
mkdir -p $XCODE_LOG_DIR
|
||||
cp build/*.log $XCODE_LOG_DIR
|
||||
upload-xcode-build-logs:
|
||||
steps:
|
||||
- store_artifacts:
|
||||
path: build/logs
|
||||
|
||||
|
||||
notify-slack-nightly-failure:
|
||||
steps:
|
||||
- run:
|
||||
name: Send a Slack notification on nightly failure
|
||||
when: on_fail
|
||||
command: |
|
||||
if [[ $CIRCLE_BRANCH == master ]]; then
|
||||
export SLACK_MESSAGE="Nightly build of \`$CIRCLE_JOB\` <$CIRCLE_BUILD_URL|failed>."
|
||||
export SLACK_COLOR="danger"
|
||||
scripts/notify-slack.sh
|
||||
fi
|
||||
|
||||
#
|
||||
# Add this step to all regular jobs to enable skipping of certain non-code-related changes.
|
||||
#
|
||||
# Do not include this step in nightly or release deployment jobs.
|
||||
#
|
||||
# To make a job potentially skippable on changes unrelated to its platform, it must:
|
||||
# - Target one of the skippable platforms: Android, iOS, or macOS.
|
||||
# - Have a job name that begins with a supported platform name.
|
||||
# - Not be related to core functionality or rendering tests. Job names that
|
||||
# contain "render-tests" cannot be skipped by platform changes.
|
||||
#
|
||||
# See the script in the following step for how to implement support for other platforms.
|
||||
#
|
||||
check-if-this-job-can-be-skipped:
|
||||
steps:
|
||||
- run:
|
||||
name: Check if this job can be skipped
|
||||
command: |
|
||||
if [[ $CIRCLE_BRANCH != master ]] && [[ $CIRCLE_BRANCH != release-* ]] && [[ -z $CIRCLE_TAG ]]; then
|
||||
scripts/check-ci-job-skippability.js
|
||||
fi
|
||||
|
||||
jobs:
|
||||
ios-debug:
|
||||
macos:
|
||||
xcode: "11.2.1"
|
||||
environment:
|
||||
BUILDTYPE: Debug
|
||||
HOMEBREW_NO_AUTO_UPDATE: 1
|
||||
HOMEBREW_NO_INSTALL_CLEANUP: 1
|
||||
steps:
|
||||
- install-macos-dependencies
|
||||
- install-dependencies
|
||||
- check-public-symbols
|
||||
- run:
|
||||
name: Lint podspecs and plist files
|
||||
command: make ios-lint
|
||||
- check-if-this-job-can-be-skipped
|
||||
- build-ios-test
|
||||
- save-dependencies
|
||||
- collect-xcode-build-logs
|
||||
- upload-xcode-build-logs
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
ios-debug-xcode10:
|
||||
macos:
|
||||
xcode: "10.3.0"
|
||||
environment:
|
||||
BUILDTYPE: Debug
|
||||
HOMEBREW_NO_AUTO_UPDATE: 1
|
||||
HOMEBREW_NO_INSTALL_CLEANUP: 1
|
||||
steps:
|
||||
- install-macos-dependencies
|
||||
- install-dependencies
|
||||
- check-public-symbols
|
||||
- run:
|
||||
name: Lint podspecs and plist files
|
||||
command: make ios-lint
|
||||
- check-if-this-job-can-be-skipped
|
||||
- build-ios-test
|
||||
- save-dependencies
|
||||
- collect-xcode-build-logs
|
||||
- upload-xcode-build-logs
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
ios-sanitize-nightly:
|
||||
macos:
|
||||
xcode: "11.2.1"
|
||||
environment:
|
||||
BUILDTYPE: Debug
|
||||
HOMEBREW_NO_AUTO_UPDATE: 1
|
||||
HOMEBREW_NO_INSTALL_CLEANUP: 1
|
||||
SLACK_CHANNEL: CU0LHNNJY
|
||||
steps:
|
||||
- install-macos-dependencies
|
||||
- install-dependencies
|
||||
- run:
|
||||
name: Build and run SDK unit tests with thread and undefined behavior sanitizers
|
||||
command: make ios-sanitize
|
||||
- run:
|
||||
name: Get iOS code coverage
|
||||
command: |
|
||||
echo "Skipping iOS code coverage"
|
||||
# Currently failing, need to update for Xcode 11
|
||||
# platform/ios/scripts/ios-code-coverage.sh CI
|
||||
#
|
||||
- save-dependencies
|
||||
- collect-xcode-build-logs
|
||||
- upload-xcode-build-logs
|
||||
- notify-slack-nightly-failure
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
ios-sanitize-address-nightly:
|
||||
macos:
|
||||
xcode: "11.2.1"
|
||||
environment:
|
||||
BUILDTYPE: Debug
|
||||
HOMEBREW_NO_AUTO_UPDATE: 1
|
||||
HOMEBREW_NO_INSTALL_CLEANUP: 1
|
||||
SLACK_CHANNEL: CU0LHNNJY
|
||||
steps:
|
||||
- install-macos-dependencies
|
||||
- install-dependencies
|
||||
- run:
|
||||
name: Build and run SDK unit tests with address sanitizer
|
||||
command: make ios-sanitize-address
|
||||
- save-dependencies
|
||||
- collect-xcode-build-logs
|
||||
- upload-xcode-build-logs
|
||||
- notify-slack-nightly-failure
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
ios-static-analyzer-nightly:
|
||||
macos:
|
||||
xcode: "11.2.1"
|
||||
environment:
|
||||
BUILDTYPE: Debug
|
||||
HOMEBREW_NO_AUTO_UPDATE: 1
|
||||
HOMEBREW_NO_INSTALL_CLEANUP: 1
|
||||
SLACK_CHANNEL: CU0LHNNJY
|
||||
steps:
|
||||
- install-macos-dependencies
|
||||
- install-dependencies
|
||||
- run:
|
||||
name: Build and run SDK unit tests with the static analyzer
|
||||
command: make ios-static-analyzer
|
||||
- save-dependencies
|
||||
- collect-xcode-build-logs
|
||||
- upload-xcode-build-logs
|
||||
- notify-slack-nightly-failure
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
ios-static-analyzer-nightly-xcode10:
|
||||
macos:
|
||||
xcode: "10.3.0"
|
||||
environment:
|
||||
BUILDTYPE: Debug
|
||||
HOMEBREW_NO_AUTO_UPDATE: 1
|
||||
HOMEBREW_NO_INSTALL_CLEANUP: 1
|
||||
SLACK_CHANNEL: CU0LHNNJY
|
||||
steps:
|
||||
- install-macos-dependencies
|
||||
- install-dependencies
|
||||
- run:
|
||||
name: Build and run SDK unit tests with the static analyzer
|
||||
command: make ios-static-analyzer
|
||||
- save-dependencies
|
||||
- collect-xcode-build-logs
|
||||
- upload-xcode-build-logs
|
||||
- notify-slack-nightly-failure
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
ios-release-template:
|
||||
macos:
|
||||
xcode: "11.2.1"
|
||||
shell: /bin/bash --login -eo pipefail
|
||||
environment:
|
||||
BUILDTYPE: Release
|
||||
HOMEBREW_NO_AUTO_UPDATE: 1
|
||||
HOMEBREW_NO_INSTALL_CLEANUP: 1
|
||||
SLACK_CHANNEL: CU0LHNNJY
|
||||
steps:
|
||||
- install-macos-dependencies
|
||||
- install-dependencies
|
||||
- check-if-this-job-can-be-skipped
|
||||
- install-ios-packaging-dependencies
|
||||
- run:
|
||||
name: Build dynamic framework for device and simulator
|
||||
command: make iframework
|
||||
no_output_timeout: 20m
|
||||
- deploy:
|
||||
name: Upload snapshot build to s3
|
||||
command: |
|
||||
if [[ $CIRCLE_BRANCH == master ]]; then
|
||||
platform/ios/scripts/deploy-snapshot.sh
|
||||
fi
|
||||
- deploy:
|
||||
name: Deploy to Mapbox CocoaPods spec repo
|
||||
command: |
|
||||
if [[ $CIRCLE_BRANCH == master ]]; then
|
||||
platform/ios/scripts/deploy-to-cocoapods.sh
|
||||
fi
|
||||
- run:
|
||||
name: Record size
|
||||
command: |
|
||||
echo "Skipping Record size step"
|
||||
# Skipping due to https://github.com/mapbox/mapbox-gl-native/issues/15751
|
||||
#platform/ios/scripts/metrics.sh
|
||||
- save-dependencies
|
||||
- collect-xcode-build-logs
|
||||
- upload-xcode-build-logs
|
||||
- notify-slack-nightly-failure
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
ios-release-tag:
|
||||
macos:
|
||||
xcode: "11.2.1"
|
||||
shell: /bin/bash --login -eo pipefail
|
||||
environment:
|
||||
BUILDTYPE: Release
|
||||
HOMEBREW_NO_AUTO_UPDATE: 1
|
||||
HOMEBREW_NO_INSTALL_CLEANUP: 1
|
||||
SLACK_CHANNEL: CU0LHNNJY
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: Send a Slack notification on start
|
||||
command: |
|
||||
export SLACK_MESSAGE="<$CIRCLE_BUILD_URL|Release build for \`$CIRCLE_TAG\` started.>"
|
||||
scripts/notify-slack.sh
|
||||
- install-macos-dependencies
|
||||
- install-dependencies
|
||||
- install-ios-packaging-dependencies
|
||||
- run:
|
||||
name: Trigger external deploy steps
|
||||
command: |
|
||||
export VERSION_TAG=${CIRCLE_TAG}
|
||||
export DOCS_REPO="ios-sdk"
|
||||
scripts/trigger-maps-documentation-deploy-steps.sh
|
||||
- run:
|
||||
name: Build, package, and upload iOS release
|
||||
command: |
|
||||
export VERSION_TAG=${CIRCLE_TAG}
|
||||
platform/ios/scripts/deploy-packages.sh
|
||||
no_output_timeout: 20m
|
||||
- deploy:
|
||||
name: Deploy to CocoaPods
|
||||
command: platform/ios/scripts/deploy-to-cocoapods.sh
|
||||
- save-dependencies
|
||||
- collect-xcode-build-logs
|
||||
- upload-xcode-build-logs
|
||||
- run:
|
||||
name: Send a Slack notification on failure
|
||||
when: on_fail
|
||||
command: |
|
||||
export SLACK_MESSAGE="<$CIRCLE_BUILD_URL|Release build for \`$CIRCLE_TAG\` failed.>"
|
||||
export SLACK_COLOR="danger"
|
||||
scripts/notify-slack.sh
|
||||
- run:
|
||||
name: Send a Slack notification on success
|
||||
when: on_success
|
||||
command: |
|
||||
export SLACK_MESSAGE="<$CIRCLE_BUILD_URL|Release build for \`$CIRCLE_TAG\` succeeded.>"
|
||||
export SLACK_COLOR="good"
|
||||
scripts/notify-slack.sh
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
ios-trigger-metrics:
|
||||
macos:
|
||||
xcode: "11.2.1"
|
||||
steps:
|
||||
- trigger-metrics
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
macos-debug:
|
||||
macos:
|
||||
xcode: "11.2.1"
|
||||
environment:
|
||||
BUILDTYPE: Debug
|
||||
HOMEBREW_NO_AUTO_UPDATE: 1
|
||||
HOMEBREW_NO_INSTALL_CLEANUP: 1
|
||||
steps:
|
||||
- install-macos-dependencies
|
||||
- install-dependencies
|
||||
- check-if-this-job-can-be-skipped
|
||||
- build-macos-test
|
||||
- check-public-symbols
|
||||
- run:
|
||||
name: Lint plist files
|
||||
command: make macos-lint
|
||||
- run:
|
||||
name: Nitpick Darwin code generation
|
||||
command: scripts/nitpick/generated-code.js darwin
|
||||
- save-dependencies
|
||||
- store_artifacts:
|
||||
path: test/fixtures
|
||||
destination: test/fixtures
|
||||
- collect-xcode-build-logs
|
||||
- upload-xcode-build-logs
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
metrics-nightly:
|
||||
docker:
|
||||
- image: mbgl/linux-gcc-5:54f59e3ac5
|
||||
working_directory: /src
|
||||
environment:
|
||||
LIBSYSCONFCPUS: 2
|
||||
JOBS: 2
|
||||
steps:
|
||||
- install-dependencies
|
||||
- run:
|
||||
name: Collect GitHub statistics
|
||||
command: |
|
||||
scripts/publish_github_stats.js
|
||||
@@ -1,9 +0,0 @@
|
||||
ignore:
|
||||
- "test/"
|
||||
- "vendor/"
|
||||
|
||||
coverage:
|
||||
status:
|
||||
project:
|
||||
default:
|
||||
threshold: 1%
|
||||
Reference in New Issue
Block a user