Skip to content

Commit 544adca

Browse files
hramosfacebook-github-bot
authored andcommitted
Test Xcode 10 (#21324)
Summary: This also fixes an issue with tagged commit Circle CI jobs, and avoids running the `publish_npm_package` on every commit. The new config ignores commits on *all branches*, but should still catch git tags. Pull Request resolved: #21324 Differential Revision: D10041629 Pulled By: hramos fbshipit-source-id: 9b3295b5fcd614c67a8838ffd49c6a5d6ae7fd86
1 parent 2da60a8 commit 544adca

File tree

1 file changed

+36
-4
lines changed

1 file changed

+36
-4
lines changed

.circleci/config.yml

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,32 @@ jobs:
434434
- store_test_results:
435435
path: ~/react-native/reports/junit
436436

437+
# Xcode 10: Runs unit tests on iOS and Apple TV devices
438+
test_objc_xcode10:
439+
<<: *defaults
440+
macos:
441+
xcode: "10.0.0"
442+
steps:
443+
- checkout
444+
- run: *setup-artifacts
445+
- run: *yarn
446+
447+
- run: *boot-simulator-iphone
448+
- run: *boot-simulator-appletv
449+
- run: *brew-install-watchman
450+
451+
- run: *run-objc-ios-tests
452+
- run: *run-objc-tvos-tests
453+
454+
# TODO: Fix these failing tests.
455+
- run: *display-broken-tests-warning
456+
- run: *run-podspec-tests
457+
- run: *run-objc-ios-e2e-tests
458+
- run: *run-objc-tvos-e2e-tests
459+
460+
- store_test_results:
461+
path: ~/react-native/reports/junit
462+
437463
# Runs end to end tests (Detox)
438464
test_detox_end_to_end:
439465
<<: *macos_defaults
@@ -653,10 +679,6 @@ workflows:
653679
requires:
654680
- checkout_code
655681

656-
# Test JavaScript and Node 10 compatibility
657-
- test_node10:
658-
filters: *filter-ignore-gh-pages
659-
660682
# Test Android
661683
- test_android:
662684
filters: *filter-ignore-gh-pages
@@ -674,9 +696,19 @@ workflows:
674696
requires:
675697
- checkout_code
676698

699+
# Tooling Compatibility Checks
700+
- test_objc_xcode10:
701+
filters: *filter-ignore-gh-pages
702+
- test_node10:
703+
filters: *filter-ignore-gh-pages
704+
677705
# Only runs on vX.X.X tags if all tests are green
678706
- publish_npm_package:
679707
filters:
708+
# ignore any commit on any branch by default
709+
branches:
710+
ignore: /.*/
711+
# only act on version tags
680712
tags:
681713
only: /v[0-9]+(\.[0-9]+)*(\-rc(\.[0-9]+)?)?/
682714
requires:

0 commit comments

Comments
 (0)