Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use test notification url for internal builds #1937

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions .github/workflows/bitrise-envs-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
ENV_DEV_E2E, core/dev/mobile/.env.development.e2e
ENV_PROD, core/dev/mobile/.env.production
ENV_PROD_E2E, core/dev/mobile/.env.production.e2e
ENV_INTERNAL, core/dev/mobile/.env.internal
ENV_INTERNAL_E2E, core/dev/mobile/.env.internal.e2e
ANDROID_GOOGLE_SERVICES_INTERNAL, core/dev/mobile/android/internal/google-services.json
IOS_GOOGLE_SERVICES_INTERNAL, core/dev/mobile/ios/internal/GoogleService-Info.plist
ANDROID_GOOGLE_SERVICES_EXTERNAL, core/dev/mobile/android/prod/google-services.json
Expand All @@ -42,6 +44,8 @@ jobs:
../common/writeEnvsToFile.sh "$ENV_DEV_E2E" ".env.development.e2e"
../common/writeEnvsToFile.sh "$ENV_PROD" ".env.production"
../common/writeEnvsToFile.sh "$ENV_PROD_E2E" ".env.production.e2e"
../common/writeEnvsToFile.sh "$ENV_INTERNAL" ".env.internal"
../common/writeEnvsToFile.sh "$ENV_INTERNAL_E2E" ".env.internal.e2e"
../common/writeGoogleServicesToFile.sh "$ANDROID_GOOGLE_SERVICES_INTERNAL" "google-services.json.internal" "json"
../common/writeGoogleServicesToFile.sh "$IOS_GOOGLE_SERVICES_INTERNAL" "GoogleService-Info.plist.internal" "plist"
../common/writeGoogleServicesToFile.sh "$ANDROID_GOOGLE_SERVICES_EXTERNAL" "google-services.json.external" "json"
Expand Down
104 changes: 0 additions & 104 deletions bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,6 @@ workflows:
- APP_TITLE: Core Mobile External
opts:
is_expand: false
- USE_TEST_FEATURE_FLAGS: "true"
opts:
is_expand: false
- USE_SEEDLESS_GAMMA: "true"
opts:
is_expand: false
- IS_EXTERNAL_BUILD: "true"
opts:
is_expand: false
Expand Down Expand Up @@ -146,12 +140,6 @@ workflows:
- APP_TITLE: Core Mobile Internal
opts:
is_expand: false
- USE_TEST_FEATURE_FLAGS: "true"
opts:
is_expand: false
- USE_SEEDLESS_GAMMA: "true"
opts:
is_expand: false
- IS_INTERNAL_BUILD: "true"
opts:
is_expand: false
Expand Down Expand Up @@ -334,14 +322,6 @@ workflows:
title: Set Env
inputs:
- file_path: scripts/bitrise/setEnv.sh
- script-runner@0:
title: Override Feature Flags Key
inputs:
- file_path: scripts/bitrise/overrideFeatureFlagsKey.sh
- script-runner@0:
title: Override Seedless Envs
inputs:
- file_path: scripts/bitrise/overrideSeedlessEnvs.sh
_trigger_ios_internal_build:
steps:
- script-runner@0:
Expand Down Expand Up @@ -544,12 +524,6 @@ workflows:
- APP_TITLE: Core Mobile Internal
opts:
is_expand: false
- USE_TEST_FEATURE_FLAGS: "true"
opts:
is_expand: false
- USE_SEEDLESS_GAMMA: "true"
opts:
is_expand: false
steps:
- deploy-to-bitrise-io@2: {}
- create-install-page-qr-code@1: {}
Expand Down Expand Up @@ -582,12 +556,6 @@ workflows:
- E2E: "true"
opts:
is_expand: false
- USE_TEST_FEATURE_FLAGS: "true"
opts:
is_expand: false
- USE_SEEDLESS_GAMMA: "true"
opts:
is_expand: false
- IS_INTERNAL_BUILD: "true"
opts:
is_expand: false
Expand Down Expand Up @@ -618,12 +586,6 @@ workflows:
- E2E: "true"
opts:
is_expand: false
- USE_TEST_FEATURE_FLAGS: "true"
opts:
is_expand: false
- USE_SEEDLESS_GAMMA: "true"
opts:
is_expand: false
- IS_REGRESSION_RUN: "true"
opts:
is_expand: false
Expand Down Expand Up @@ -658,12 +620,6 @@ workflows:
- E2E: "true"
opts:
is_expand: false
- USE_TEST_FEATURE_FLAGS: "true"
opts:
is_expand: false
- USE_SEEDLESS_GAMMA: "true"
opts:
is_expand: false
- IS_REGRESSION_RUN: "true"
opts:
is_expand: false
Expand Down Expand Up @@ -703,12 +659,6 @@ workflows:
- E2E: "true"
opts:
is_expand: false
- USE_TEST_FEATURE_FLAGS: "true"
opts:
is_expand: false
- USE_SEEDLESS_GAMMA: "true"
opts:
is_expand: false
- POST_TO_TESTRAIL: "true"
opts:
is_expand: false
Expand Down Expand Up @@ -751,12 +701,6 @@ workflows:
- E2E: "true"
opts:
is_expand: false
- USE_TEST_FEATURE_FLAGS: "true"
opts:
is_expand: false
- USE_SEEDLESS_GAMMA: "true"
opts:
is_expand: false
- POST_TO_TESTRAIL: "true"
opts:
is_expand: false
Expand Down Expand Up @@ -799,12 +743,6 @@ workflows:
- E2E: "true"
opts:
is_expand: false
- USE_TEST_FEATURE_FLAGS: "true"
opts:
is_expand: false
- USE_SEEDLESS_GAMMA: "true"
opts:
is_expand: false
- POST_TO_TESTRAIL: "true"
opts:
is_expand: false
Expand Down Expand Up @@ -847,12 +785,6 @@ workflows:
- E2E: "true"
opts:
is_expand: false
- USE_TEST_FEATURE_FLAGS: "true"
opts:
is_expand: false
- USE_SEEDLESS_GAMMA: "true"
opts:
is_expand: false
- POST_TO_TESTRAIL: "true"
opts:
is_expand: false
Expand Down Expand Up @@ -895,12 +827,6 @@ workflows:
- E2E: "true"
opts:
is_expand: false
- USE_TEST_FEATURE_FLAGS: "true"
opts:
is_expand: false
- USE_SEEDLESS_GAMMA: "true"
opts:
is_expand: false
- POST_TO_TESTRAIL: "true"
opts:
is_expand: false
Expand Down Expand Up @@ -1000,12 +926,6 @@ workflows:
- APP_TITLE: Core Mobile Internal
opts:
is_expand: false
- USE_TEST_FEATURE_FLAGS: "true"
opts:
is_expand: false
- USE_SEEDLESS_GAMMA: "true"
opts:
is_expand: false
- IS_INTERNAL_BUILD: "true"
opts:
is_expand: false
Expand Down Expand Up @@ -1040,12 +960,6 @@ workflows:
- E2E: "true"
opts:
is_expand: false
- USE_TEST_FEATURE_FLAGS: "true"
opts:
is_expand: false
- USE_SEEDLESS_GAMMA: "true"
opts:
is_expand: false
- POST_TO_TESTRAIL: "true"
opts:
is_expand: false
Expand Down Expand Up @@ -1080,12 +994,6 @@ workflows:
- E2E: "true"
opts:
is_expand: false
- USE_TEST_FEATURE_FLAGS: "true"
opts:
is_expand: false
- USE_SEEDLESS_GAMMA: "true"
opts:
is_expand: false
- POST_TO_TESTRAIL: "true"
opts:
is_expand: false
Expand Down Expand Up @@ -1123,12 +1031,6 @@ workflows:
- E2E: "true"
opts:
is_expand: false
- USE_TEST_FEATURE_FLAGS: "true"
opts:
is_expand: false
- USE_SEEDLESS_GAMMA: "true"
opts:
is_expand: false
- POST_TO_TESTRAIL: "true"
opts:
is_expand: false
Expand Down Expand Up @@ -1177,12 +1079,6 @@ workflows:
- E2E: "true"
opts:
is_expand: false
- USE_TEST_FEATURE_FLAGS: "true"
opts:
is_expand: false
- USE_SEEDLESS_GAMMA: "true"
opts:
is_expand: false
- POST_TO_TESTRAIL: "true"
opts:
is_expand: false
Expand Down
29 changes: 0 additions & 29 deletions packages/core-mobile/scripts/bitrise/overrideFeatureFlagsKey.sh

This file was deleted.

42 changes: 0 additions & 42 deletions packages/core-mobile/scripts/bitrise/overrideSeedlessEnvs.sh

This file was deleted.

12 changes: 9 additions & 3 deletions packages/core-mobile/scripts/bitrise/setEnv.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
#!/usr/bin/env bash
set -ex

# grab the correct env file based on ENVIRONMENT and E2E env vars
# grab the correct env file
if [ "$ENVIRONMENT" = "production" ]; then
if [ "$APP_TITLE" = "Core Mobile Internal" ]; then
PREFIX=".env.internal"
else
PREFIX=".env.production"
fi

if [ "$E2E" = "true" ]; then
cp .env.production.e2e .env
cp "$PREFIX.e2e" .env
else
cp .env.production .env
cp "$PREFIX" .env
fi
elif [ "$ENVIRONMENT" = "development" ]; then
cp .env.development .env
Expand Down
4 changes: 4 additions & 0 deletions packages/core-mobile/scripts/getEnvs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@ ENV_DEV=$(getSecretFromAWS "core/dev/mobile/.env.development")
ENV_DEV_E2E=$(getSecretFromAWS "core/dev/mobile/.env.development.e2e")
ENV_PROD=$(getSecretFromAWS "core/dev/mobile/.env.production")
ENV_PROD_E2E=$(getSecretFromAWS "core/dev/mobile/.env.production.e2e")
ENV_INTERNAL=$(getSecretFromAWS "core/dev/mobile/.env.internal")
ENV_INTERNAL_E2E=$(getSecretFromAWS "core/dev/mobile/.env.internal.e2e")

# Write to .env files
./scripts/common/writeEnvsToFile.sh "$ENV_DEV" ".env.development"
./scripts/common/writeEnvsToFile.sh "$ENV_DEV_E2E" ".env.development.e2e"
./scripts/common/writeEnvsToFile.sh "$ENV_PROD" ".env.production"
./scripts/common/writeEnvsToFile.sh "$ENV_PROD_E2E" ".env.production.e2e"
./scripts/common/writeEnvsToFile.sh "$ENV_INTERNAL" ".env.internal"
./scripts/common/writeEnvsToFile.sh "$ENV_INTERNAL_E2E" ".env.internal.e2e"

# Use .env.development as the default
cp .env.development .env
Expand Down
Loading