Skip to content

Commit 6c5e04d

Browse files
authored
Unit tests don't run for watchOS (#6273)
1 parent 508f29d commit 6c5e04d

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.github/workflows/crashlytics.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
pull_request:
55
paths:
66
- 'Crashlytics**'
7+
- 'FirebaseCrashlytics.podspec'
78
- '.github/workflows/crashlytics.yml'
89
- 'Interop/Analytics/Public/*.h'
910
- 'Gemfile'

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
env:
125125
- PROJECT=Crashlytics METHOD=pod-lib-lint
126126
script:
127-
- travis_retry ./scripts/if_changed.sh ./scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --skip-tests
127+
- travis_retry ./scripts/if_changed.sh ./scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=ios
128128

129129
- stage: test
130130
env:

FirebaseCrashlytics.podspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ Pod::Spec.new do |s|
102102
}
103103

104104
s.test_spec 'unit' do |unit_tests|
105+
# Unit tests can't run on watchOS.
106+
unit_tests.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
105107
unit_tests.source_files = 'Crashlytics/UnitTests/*.[mh]',
106108
'Crashlytics/UnitTests/*/*.[mh]'
107109
unit_tests.resources = 'Crashlytics/UnitTests/Data/*',

0 commit comments

Comments
 (0)