Skip to content

Bb/dec 7 #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Bitrise-React-Native-Sample

Simple React Native Project

Working bitrise.yml included in the root of the project

bitrise.yml builds iOS .ipa + Android .apk and runs tests
183 changes: 124 additions & 59 deletions bitrise.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,155 @@
---
format_version: '8'
format_version: "8"
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: react-native
app:
envs:
- PROJECT_LOCATION: android
opts:
is_expand: false
- MODULE: app
opts:
is_expand: false
- VARIANT: ""
opts:
is_expand: false
- BITRISE_PROJECT_PATH: ios/TodoMVC.xcworkspace
opts:
is_expand: false
- BITRISE_SCHEME: TodoMVC
opts:
is_expand: false
- BITRISE_EXPORT_METHOD: development
opts:
is_expand: false
- BITRISE_TEAM: 72SA8V3WYL
opts:
is_expand: false
- BITRISE_PROFILE_ID: b103a1f0-1f51-4d53-a41f-c08719676e94
opts:
is_expand: false
- BITRISE_CODE_SIGNING_IDENTITY: 'iPhone Developer: Dev Portal Bot Bitrise (E89JV3W9K4)'
opts:
is_expand: false
meta:
bitrise.io:
machine_type_id: g2.8core
stack: osx-xcode-13.4.x
trigger_map:
- push_branch: "*"
workflow: primary
- pull_request_source_branch: "*"
- push_branch: '*'
pipeline: deploy-parallel
- pull_request_source_branch: '*'
workflow: primary
pipelines:
deploy-parallel:
stages:
- build: {}
stages:
build:
workflows:
- build_android: {}
- build_iOS: {}
workflows:
deploy:
_finish:
steps:
- cache-push@2: {}
- deploy-to-bitrise-io@1: {}
_setup:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@4: {}
- cache-pull@2: {}
- git-clone@6: {}
- restore-cache@1:
inputs:
- verbose: "true"
- key: |-
npm-cache-{{ checksum "package-lock.json" }}
npm-cache-
- yarn@0:
inputs:
- cache_local_deps: 'yes'
- verbose_log: 'yes'
- cache_local_deps: "yes"
- verbose_log: "yes"
- command: install
- save-cache@1:
inputs:
- paths: node_modules/**
- verbose: "true"
- key: npm--cache-{{ checksum "package-lock.json" }}
build_android:
before_run:
- _setup
after_run:
- _finish
steps:
- install-missing-android-tools@2:
inputs:
- gradlew_path: $PROJECT_LOCATION/gradlew
- android-build@0:
inputs:
- project_location: $PROJECT_LOCATION
build_iOS:
before_run:
- _setup
after_run:
- _finish
steps:
- cocoapods-install@1:
inputs:
- source_root_path: "$BITRISE_SOURCE_DIR/ios"
- source_root_path: $BITRISE_SOURCE_DIR/ios
- certificate-and-profile-installer@1: {}
- xcode-archive@3:
inputs:
- project_path: "$BITRISE_PROJECT_PATH"
- scheme: "$BITRISE_SCHEME"
- export_method: "$BITRISE_EXPORT_METHOD"
- team_id: "$BITRISE_TEAM"
- compile_bitcode: 'no'
- upload_bitcode: 'no'
- force_code_sign_identity: "$BITRISE_CODE_SIGNING_IDENTITY"
- force_provisioning_profile_specifier: ''
- force_provisioning_profile: "$BITRISE_PROFILE_ID"
- verbose_log: 'no'
- project_path: $BITRISE_PROJECT_PATH
- scheme: $BITRISE_SCHEME
- export_method: $BITRISE_EXPORT_METHOD
- team_id: $BITRISE_TEAM
- compile_bitcode: "no"
- upload_bitcode: "no"
- force_code_sign_identity: $BITRISE_CODE_SIGNING_IDENTITY
- force_provisioning_profile_specifier: ""
- force_provisioning_profile: $BITRISE_PROFILE_ID
- verbose_log: "no"
- configuration: Debug
deploy:
before_run:
- _setup
after_run:
- _finish
steps:
- cocoapods-install@1:
inputs:
- source_root_path: $BITRISE_SOURCE_DIR/ios
- certificate-and-profile-installer@1: {}
- xcode-archive@3:
inputs:
- project_path: $BITRISE_PROJECT_PATH
- scheme: $BITRISE_SCHEME
- export_method: $BITRISE_EXPORT_METHOD
- team_id: $BITRISE_TEAM
- compile_bitcode: "no"
- upload_bitcode: "no"
- force_code_sign_identity: $BITRISE_CODE_SIGNING_IDENTITY
- force_provisioning_profile_specifier: ""
- force_provisioning_profile: $BITRISE_PROFILE_ID
- verbose_log: "no"
- configuration: Debug
- xcode-test@2:
inputs:
- generate_code_coverage_files: 'yes'
- should_build_before_test: 'no'
- should_retry_test_on_fail: 'yes'
- generate_code_coverage_files: "yes"
- should_build_before_test: "no"
- should_retry_test_on_fail: "yes"
- output_tool: xcodebuild
- xcodebuild_test_options: "-parallel-testing-enabled=YES -parallel-testing-worker-count=3"
- xcodebuild_test_options: -parallel-testing-enabled=YES -parallel-testing-worker-count=3
- install-missing-android-tools@2:
inputs:
- gradlew_path: "$PROJECT_LOCATION/gradlew"
- gradlew_path: $PROJECT_LOCATION/gradlew
- android-build@0:
inputs:
- project_location: "$PROJECT_LOCATION"
- cache-push@2: {}
- deploy-to-bitrise-io@1: {}
- project_location: $PROJECT_LOCATION
primary:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@4: {}
- git-clone@6: {}
- script@1:
title: Do anything with Script step
- yarn@0:
Expand All @@ -65,32 +159,3 @@ workflows:
inputs:
- command: test
- deploy-to-bitrise-io@1: {}
app:
envs:
- opts:
is_expand: false
PROJECT_LOCATION: android
- opts:
is_expand: false
MODULE: app
- opts:
is_expand: false
VARIANT: ''
- opts:
is_expand: false
BITRISE_PROJECT_PATH: ios/TodoMVC.xcworkspace
- opts:
is_expand: false
BITRISE_SCHEME: TodoMVC
- opts:
is_expand: false
BITRISE_EXPORT_METHOD: development
- opts:
is_expand: false
BITRISE_TEAM: 72SA8V3WYL
- opts:
is_expand: false
BITRISE_PROFILE_ID: b103a1f0-1f51-4d53-a41f-c08719676e94
- opts:
is_expand: false
BITRISE_CODE_SIGNING_IDENTITY: 'iPhone Developer: Dev Portal Bot Bitrise (E89JV3W9K4)'
4 changes: 2 additions & 2 deletions ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '10.0'
platform :ios, '11.0'

target 'TodoMVC' do
config = use_native_modules!
Expand Down Expand Up @@ -30,4 +30,4 @@ target 'TodoMVC-tvOS' do
inherit! :search_paths
# Pods for testing
end
end
end
Loading