-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
92 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
version: v1.0 | ||
name: React Native Android | ||
agent: | ||
machine: | ||
type: e1-standard-2 | ||
os_image: ubuntu1804 | ||
containers: | ||
- name: main | ||
image: 'registry.semaphoreci.com/android:29-node' | ||
|
||
blocks: | ||
- name: Bundle android | ||
task: | ||
jobs: | ||
- name: yarn install and cache | ||
commands: | ||
- checkout | ||
- npm i -g yarn | ||
- cache restore yarn-$(checksum yarn.lock) | ||
- yarn install --frozen-lockfile | ||
- cache store yarn-$(checksum yarn.lock) node_modules | ||
- cd android | ||
- ./gradlew bundleRelease assembleRelease | ||
- artifact push job app/build/outputs |
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 @@ | ||
version: v1.0 | ||
name: React Native iOS | ||
agent: | ||
machine: | ||
type: a1-standard-4 | ||
os_image: macos-xcode12 | ||
|
||
blocks: | ||
- name: Build ios | ||
task: | ||
env_vars: | ||
- name: LANG | ||
value: en_US.UTF-8 | ||
jobs: | ||
- name: Fastlane build | ||
commands: | ||
- checkout | ||
- brew install yarn | ||
- cache restore yarn-$(checksum yarn.lock) | ||
- yarn install --frozen-lockfile | ||
- cache store yarn-$(checksum yarn.lock) node_modules | ||
- cd ios | ||
- pod install | ||
- xcodebuild clean archive -workspace testCiCdReactNative.xcworkspace -scheme testCiCdReactNative -archivePath testCiCdReactNative.xcarchive CODE_SIGNING_ALLOWED=NO | xcpretty |
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