-
Notifications
You must be signed in to change notification settings - Fork 582
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: codepush ci refactor, check native code command (#9338)
* add command to check native code * try making codepush deploy part of test-build-deploy flow * refactor job to not install deps unless necessary * remove now unused script * try m1 for this * try installing ruby * chore: use m1 machines in ci (#9262) * use m1 machines in ci * is it because ruby version does not match? * how was this working before * missed a spot * try using 2.7.8 to workaround ruby install issue * turn off early quit for now * try installing rosetta * Revert "turn off early quit for now" This reverts commit 5f12fb4. * remove unnecessary ruby install * make sure jq is installed * avoid re-executed the deployment check script * try to specify ruby version, fail hard in scripts * try using xcode 14.3.1 * add verbose output * maybe it is this? * i dk man * which one of you broke everything * was it you relay? * was it you codepush cli? * i think it was you jq * remove dev changes * missed podfile change * increment native code version * try updating the simulator used * update failing snapshot image
- Loading branch information
1 parent
901898c
commit 6fb3b81
Showing
10 changed files
with
46 additions
and
40 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 |
---|---|---|
|
@@ -4,7 +4,6 @@ orbs: | |
node: circleci/[email protected] | ||
queue: eddiewebb/[email protected] | ||
horizon: artsy/[email protected] | ||
jq: circleci/[email protected] | ||
macos: circleci/[email protected] | ||
|
||
commands: | ||
|
@@ -183,7 +182,7 @@ jobs: | |
BUNDLE_PATH: .vendor # path to install gems and use for caching | ||
|
||
macos: | ||
xcode: 14.1.0 | ||
xcode: 14.3.1 | ||
resource_class: macos.m1.medium.gen1 | ||
|
||
steps: | ||
|
@@ -195,21 +194,42 @@ jobs: | |
|
||
check-and-deploy: | ||
environment: | ||
BUNDLE_PATH: .vendor # path to install gems and use for caching | ||
BUNDLE_PATH: .vendor | ||
|
||
macos: | ||
xcode: 14.1.0 | ||
resource_class: macos.x86.medium.gen2 | ||
xcode: 14.3.1 | ||
resource_class: macos.m1.medium.gen1 | ||
|
||
steps: | ||
- checkout | ||
- install-node | ||
- install-gems | ||
- run: | ||
name: Check if native code has changed | ||
command: ./scripts/codepush/check-native-code.sh | ||
name: Install jq | ||
command: brew install jq | ||
- run: | ||
name: Deploy or notify | ||
command: ./scripts/codepush/deploy-or-notify.sh | ||
name: Determine Deployment Type | ||
command: | | ||
DEPLOYMENT_TYPE=$(./scripts/codepush/determine-deployment-type.sh) | ||
echo "export DEPLOYMENT_TYPE=$DEPLOYMENT_TYPE" >> $BASH_ENV | ||
- run: | ||
name: Handle Deployment for beta | ||
command: | | ||
if [ "$DEPLOYMENT_TYPE" == "beta" ]; then | ||
echo "Native code changed, notifying new beta needed!" | ||
bundle exec fastlane notify_beta_needed | ||
circleci-agent step halt | ||
fi | ||
- install-node-modules | ||
- run: | ||
name: Install CodePush CLI | ||
command: yarn global add appcenter-cli | ||
- run-relay-compiler | ||
- run: | ||
name: Handle Deployment for codepush | ||
command: | | ||
echo "Triggering CodePush deployment..." | ||
./scripts/codepush/deploy-to-codepush.sh Staging | ||
test-js: | ||
parallelism: 8 | ||
|
@@ -289,7 +309,7 @@ jobs: | |
BUNDLE_PATH: .vendor # path to install gems and use for caching | ||
|
||
macos: | ||
xcode: 14.1.0 | ||
xcode: 14.3.1 | ||
resource_class: macos.m1.medium.gen1 | ||
|
||
steps: | ||
|
@@ -339,7 +359,7 @@ jobs: | |
BUNDLE_PATH: .vendor # path to install gems and use for caching | ||
|
||
macos: | ||
xcode: 14.1.0 | ||
xcode: 14.3.1 | ||
resource_class: macos.m1.medium.gen1 | ||
|
||
steps: | ||
|
@@ -433,7 +453,7 @@ jobs: | |
environment: | ||
BUNDLE_PATH: .vendor # path to install gems and use for caching | ||
macos: | ||
xcode: 14.1.0 | ||
xcode: 14.3.1 | ||
resource_class: macos.m1.medium.gen1 | ||
steps: | ||
- checkout | ||
|
@@ -455,14 +475,6 @@ workflows: | |
jobs: | ||
- deploy-nightly-beta | ||
|
||
deploy: | ||
jobs: | ||
- check-and-deploy: | ||
filters: | ||
branches: | ||
only: | ||
- main | ||
|
||
flag-check: | ||
triggers: | ||
- schedule: | ||
|
@@ -520,6 +532,12 @@ workflows: | |
- app_store_submission | ||
- play_store_submission | ||
|
||
- check-and-deploy: | ||
filters: | ||
branches: | ||
only: | ||
- main | ||
|
||
- test-js: | ||
filters: | ||
branches: | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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