-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #88 from DataDog/buranmert/RUMM-301-shopist
RUMM-301 Shopist project created
- Loading branch information
Showing
60 changed files
with
678 additions
and
2,362 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
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,15 @@ | ||
all: secret | ||
|
||
LOCAL_XCCONFIG="./Shopist/shopist-secrets.local.xcconfig" | ||
ifeq ($(secret),) | ||
secret="my-secret-token" | ||
endif | ||
|
||
secret: | ||
ifeq (,$(wildcard ./Shopist/shopist-secrets.local.xcconfig)) | ||
@echo "Creating shopist-secrets.local.xcconfig..." ; | ||
@echo DATADOG_CLIENT_TOKEN="$(secret)" >> $(LOCAL_XCCONFIG) | ||
@echo "🔑 Your token is set: $(secret)" | ||
@echo "🛠 You can change it in $(LOCAL_XCCONFIG)" | ||
endif | ||
@echo "All good 👌" |
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...ject.xcworkspace/contents.xcworkspacedata → ...ject.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
#include? "shopist-secrets.local.xcconfig" |
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
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -12,12 +12,9 @@ workflows: | |
- _make_dependencies | ||
- run_linter | ||
- run_unit_tests | ||
- run_ui_tests | ||
- run_integration_tests | ||
- check_dependency_managers | ||
# I disable it for now, as this would require supporting local pod installation | ||
# of `DatadogSDK.podspec` in CP example project. This effort will be lost as in `RUMM-334` | ||
# we're going to re-do sample apps layout and not use local pod anymore. | ||
# - check_example_projects | ||
- _deploy_artifacts | ||
|
||
_make_dependencies: | ||
|
@@ -94,6 +91,26 @@ workflows: | |
- destination: platform=OS X,arch=x86_64 | ||
- project_path: instrumented-tests/http-server-mock/HTTPServerMock.xcodeproj | ||
|
||
run_ui_tests: | ||
description: |- | ||
Runs UI tests for Shopist app on iOS Simulator. | ||
steps: | ||
- [email protected]: | ||
title: Generate client token for Shopist | ||
inputs: | ||
- content: |- | ||
#!/usr/bin/env bash | ||
set -e | ||
cd Shopist && make | ||
- [email protected]: | ||
title: Run UI tests for Shopist - iOS Simulator | ||
inputs: | ||
- scheme: Shopist | ||
- simulator_device: iPhone 11 | ||
- generate_code_coverage_files: 'yes' | ||
- project_path: Shopist/Shopist.xcodeproj | ||
- xcpretty_test_options: --color --report html --output "${BITRISE_DEPLOY_DIR}/Shopist-UI-tests.html" | ||
|
||
run_integration_tests: | ||
description: |- | ||
Runs integration tests from Datadog.xcworkspace. | ||
|
@@ -158,37 +175,3 @@ workflows: | |
- cache_level: none | ||
- project_path: "$BITRISE_SOURCE_DIR/dependency-manager-tests/cocoapods/CPProject.xcworkspace" | ||
- xcpretty_test_options: --color --report html --output "${BITRISE_DEPLOY_DIR}/CPProject-tests.html" | ||
|
||
check_example_projects: | ||
description: |- | ||
Links SDK to example projects using supported dependency | ||
managers (SPM and Cocoapods). With UITests it checks if example apps start with | ||
no dylib error. | ||
steps: | ||
- cocoapods-install: | ||
inputs: | ||
- is_cache_disabled: 'true' | ||
- source_root_path: "$BITRISE_SOURCE_DIR/examples/iOS-app-example-cocoapods" | ||
- [email protected]: | ||
title: Generate fake Client Token | ||
inputs: | ||
- content: |- | ||
#!/usr/bin/env bash | ||
set -e | ||
make examples | ||
- xcode-test: | ||
title: Run CP's example UITests | ||
inputs: | ||
- scheme: iOS-app-example-cocoapods | ||
- is_clean_build: 'yes' | ||
- cache_level: none | ||
- project_path: "$BITRISE_SOURCE_DIR/examples/iOS-app-example-cocoapods/iOS-app-example-cocoapods.xcworkspace" | ||
- xcpretty_test_options: --color --report html --output "${BITRISE_DEPLOY_DIR}/Cocoapods-example-ui-tests.html" | ||
- xcode-test: | ||
title: Run SPM's example UITests | ||
inputs: | ||
- scheme: iOS-app-example-spm | ||
- is_clean_build: 'yes' | ||
- cache_level: none | ||
- project_path: "$BITRISE_SOURCE_DIR/examples/iOS-app-example-spm/iOS-app-example-spm.xcodeproj" | ||
- xcpretty_test_options: --color --report html --output "${BITRISE_DEPLOY_DIR}/SPM-example-ui-tests.html" |
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
examples/examples-shared-uitests/iOS_app_example_spm_UITests.swift
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
examples/iOS-app-example-cocoapods/example-specific-config.xcconfig
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...s/iOS-app-example-cocoapods/iOS-app-example-cocoapods-UITests/.where-are-the-source-files
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.