-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
119 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
all: setup | ||
|
||
define ORG2_SECRETS | ||
RUM_APPLICATION_ID=${RUM_APPLICATION_ID}\n | ||
DATADOG_CLIENT_TOKEN=${DATADOG_CLIENT_TOKEN}\n | ||
SHOPIST_BASE_URL=${SHOPIST_BASE_URL}\n | ||
endef | ||
export ORG2_SECRETS | ||
|
||
define DEMO_SECRETS | ||
RUM_APPLICATION_ID=${DEMO_RUM_APPLICATION_ID}\n | ||
DATADOG_CLIENT_TOKEN=${DEMO_DATADOG_CLIENT_TOKEN}\n | ||
SHOPIST_BASE_URL=${DEMO_SHOPIST_BASE_URL}\n | ||
endef | ||
export DEMO_SECRETS | ||
|
||
setup: | ||
ifeq (${IS_DEMO}, true) | ||
@echo "Running demo scenarios..." | ||
@echo $$DEMO_SECRETS > ../xcconfigs/Shopist.local.xcconfig; | ||
else | ||
@echo $$ORG2_SECRETS > ../xcconfigs/Shopist.local.xcconfig; | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
format_version: '8' | ||
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git | ||
project_type: other | ||
|
||
# To customize how workflows are run on different triggers, | ||
# go to Workflow Editor on Bitrise.io. | ||
|
||
workflows: | ||
shopist_demo: | ||
envs: | ||
- IS_DEMO: true | ||
after_run: | ||
- run_shopist_scenarios | ||
shopist_org2: | ||
envs: | ||
- IS_DEMO: false | ||
after_run: | ||
- run_shopist_scenarios | ||
|
||
run_shopist_scenarios: | ||
description: |- | ||
Runs Shopist demo scenarios on iOS Simulator | ||
steps: | ||
- script@1.1.6: | ||
title: Generate secrets for Shopist app | ||
inputs: | ||
- content: |- | ||
#!/usr/bin/env zsh | ||
set -e | ||
cd Shopist && make | ||
- xcode-test@2.4.5: | ||
title: Run UI tests for Shopist - iOS Simulator | ||
inputs: | ||
- scheme: Shopist | ||
- simulator_device: iPhone 11 Pro | ||
- project_path: Shopist.xcodeproj | ||
- xcpretty_test_options: --color --report html --output "${BITRISE_DEPLOY_DIR}/Shopist-UI-tests.html" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
#include "Datadog.xcconfig" | ||
|
||
// TODO: RUMM-664 temporary value, otherwise test cases fail in CI | ||
RUM_APPLICATION_ID=12345 // use your own RUM Application ID obtained on datadoghq.com | ||
RUM_APPLICATION_ID= // use your own RUM Application ID obtained on datadoghq.com | ||
DATADOG_CLIENT_TOKEN= // use your own Client Token, generated for RUM_APPLICATION_ID | ||
SHOPIST_BASE_URL=some.url | ||
#include? "Shopist.local.xcconfig" // overrides SHOPIST_BASE_URL | ||
SHOPIST_BASE_URL=some.url // use Shopist endpoint without protocol | ||
#include? "Shopist.local.xcconfig" |