Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Validate if circle-ci var is unset #12489

Merged
merged 1 commit into from
Jul 26, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ jobs:
- run:
name: Build Test APK
command: |
if [[ $MAPBOX_DEVELOPER_CONFIG_XML ]]; then
if [ -n "${MAPBOX_DEVELOPER_CONFIG_XML}" ]; then
echo "${MAPBOX_DEVELOPER_CONFIG_XML}" > platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/developer-config.xml
make android-ui-test-arm-v7
fi
Expand All @@ -411,7 +411,7 @@ jobs:
name: Log in to Google Cloud Platform
shell: /bin/bash -euo pipefail
command: |
if [[ $GCLOUD_SERVICE_ACCOUNT_JSON ]]; then
if [ -n "${GCLOUD_SERVICE_ACCOUNT_JSON}" ]; then
echo "${GCLOUD_SERVICE_ACCOUNT_JSON}" > secret.json
gcloud auth activate-service-account --key-file secret.json --project android-gl-native
rm secret.json
Expand All @@ -421,7 +421,7 @@ jobs:
no_output_timeout: 1200
shell: /bin/bash -euo pipefail
command: |
if [[ $GCLOUD_SERVICE_ACCOUNT_JSON ]]; then
if [ -n "${GCLOUD_SERVICE_ACCOUNT_JSON}" ]; then
gcloud firebase test android models list
gcloud firebase test android run --type instrumentation \
--app platform/android/MapboxGLAndroidSDKTestApp/build/outputs/apk/debug/MapboxGLAndroidSDKTestApp-debug.apk \
Expand Down Expand Up @@ -469,7 +469,7 @@ jobs:
name: Generate Maven credentials
shell: /bin/bash -euo pipefail
command: |
if [[ $PUBLISH_NEXUS_USERNAME ]]; then
if [ -n "${PUBLISH_NEXUS_USERNAME}" ]; then
aws s3 cp s3://mapbox/android/signing-credentials/secring.gpg platform/android/MapboxGLAndroidSDK/secring.gpg
echo "NEXUS_USERNAME=$PUBLISH_NEXUS_USERNAME
NEXUS_PASSWORD=$PUBLISH_NEXUS_PASSWORD
Expand Down