From b8b0134d65386d91d6bc0e2abb2971df630ef0a9 Mon Sep 17 00:00:00 2001 From: tobrun Date: Thu, 26 Jul 2018 11:23:29 +0200 Subject: [android] - validate if circle-ci var is unset --- circle.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/circle.yml b/circle.yml index 784ee2530c..8818adacc9 100644 --- a/circle.yml +++ b/circle.yml @@ -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 @@ -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 @@ -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 \ @@ -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 -- cgit v1.2.1