-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create prebuilt Detox framework (wix#1954)
* Swap to bash for convenience * Switch to Swift 5 and no longer embed Swift standard libraries This means we require Xcode 10.2, iOS 12.2 at minimum * Fix Xcode version regex * Do not pack iOS artifacts during prepublish or publish Artifacts will be built during a separate step in CI. * Add “package:ios” script to be run on CI * Rather than build during postinstall, extract existing prebuilt framework Dev mode will continue to build from source * Make the script exit on build error * Update ci.publish.js
- Loading branch information
Showing
14 changed files
with
55 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -229,3 +229,4 @@ detox/test/artifacts | |
|
||
Detox-android/ | ||
Detox-ios-src.tbz | ||
Detox-ios.tbz |
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
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
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
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
This file was deleted.
Oops, something went wrong.
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,24 @@ | ||
#!/bin/bash -e | ||
|
||
rm -rf Detox-ios-src.tbz | ||
rm -rf Detox-ios.tbz | ||
rm -rf build_temp | ||
|
||
ios/EarlGrey/Scripts/setup-earlgrey.sh | ||
find ./ios -name Build -type d -exec rm -rf {} \; | ||
|
||
#Package sources | ||
pushd . &> /dev/null | ||
cd ios | ||
tar --exclude-from=.tbzignore -cjf ../Detox-ios-src.tbz . | ||
popd &> /dev/null | ||
|
||
#Package prebuilt framework | ||
mkdir build_temp | ||
scripts/build_universal_framework.sh "ios/Detox.xcodeproj" "build_temp" &> build_temp/detox_ios.log | ||
pushd . &> /dev/null | ||
cd build_temp | ||
tar --exclude-from=../ios/.tbzignore -cjf ../Detox-ios.tbz . | ||
popd &> /dev/null | ||
|
||
rm -fr build_temp |
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,4 @@ | ||
#!/bin/bash -e | ||
|
||
cd detox | ||
scripts/pack_ios.sh |
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