Skip to content

Commit

Permalink
RUMM-346 Add Cocoapods dependency manager test
Browse files Browse the repository at this point in the history
and disable CP example project on CI as we're going to update it's structure very soon in RUMM-334.
  • Loading branch information
ncreated committed Apr 2, 2020
1 parent cbb41bd commit 6ccda27
Show file tree
Hide file tree
Showing 20 changed files with 943 additions and 5 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,7 @@ test-spm:
# Tests if current branch ships a valid Carthage project.
test-carthage:
@cd dependency-manager-tests/carthage && $(MAKE)

# Tests if current branch ships a valid Cocoapods project.
test-cocoapods:
@cd dependency-manager-tests/cocoapods && $(MAKE)
29 changes: 28 additions & 1 deletion bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ workflows:
- run_integration_tests
- run_benchmarks
- check_dependency_managers
- check_example_projects
# 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:
Expand Down Expand Up @@ -140,13 +143,37 @@ workflows:
#!/usr/bin/env bash
set -e
make test-spm ci=true
- xcode-test:
title: Run SPMProject UITests
inputs:
- scheme: SPMProject
- is_clean_build: 'yes'
- cache_level: none
- project_path: "$BITRISE_SOURCE_DIR/dependency-manager-tests/spm/SPMProject.xcodeproj"
- xcpretty_test_options: --color --report html --output "${BITRISE_DEPLOY_DIR}/SPMProject-ui-tests.html"
- [email protected]:
title: Test Carthage compatibility
inputs:
- content: |-
#!/usr/bin/env bash
set -e
make test-carthage ci=true
# TODO: RUMM-334 add UITests for Carthage project
- [email protected]:
title: Test Cocoapods compatibility
inputs:
- content: |-
#!/usr/bin/env bash
set -e
make test-cocoapods ci=true
- xcode-test:
title: Run CPProject UITests
inputs:
- scheme: CPProject
- is_clean_build: 'yes'
- 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-ui-tests.html"

check_example_projects:
description: |-
Expand Down
6 changes: 6 additions & 0 deletions dependency-manager-tests/cocoapods/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.DS_Store
/Pods

# Ignore `Podfile.lock` and `Podfile` as they will be re-created for every test run.
Podfile.lock
Podfile
Loading

0 comments on commit 6ccda27

Please sign in to comment.