Skip to content

Commit

Permalink
Merge pull request #66 from DataDog/ncreated/RUMM-346-add-cocoapods-test
Browse files Browse the repository at this point in the history
RUMM-346 Add Cocoa Pods dependency manager test
  • Loading branch information
ncreated authored Apr 6, 2020
2 parents 44f013c + 3d65686 commit 4db2dd9
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"
- script@1.1.6:
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
- script@1.1.6:
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 4db2dd9

Please sign in to comment.