Skip to content

Commit

Permalink
chore: add prod workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusz1913 committed Jun 23, 2022
1 parent 014bc6a commit 97614d0
Show file tree
Hide file tree
Showing 5 changed files with 187 additions and 13 deletions.
96 changes: 84 additions & 12 deletions bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@
format_version: '11'
default_step_lib_source: 'https://github.com/bitrise-io/bitrise-steplib.git'
project_type: react-native
meta:
bitrise.io:
stack: osx-xcode-13.2.x
app:
envs:
- opts:
is_expand: false
PLATFORM: all
trigger_map:
- pull_request_source_branch: '*'
pull_request_target_branch: master
workflow: lint
workflows:
# deploy:
# description: >
Expand Down Expand Up @@ -62,6 +74,7 @@ workflows:
steps:
- activate-ssh-key@4: {}
- git-clone@6: {}
- cache-pull@2: {}
- yarn@0:
inputs:
- command: install
Expand All @@ -71,16 +84,75 @@ workflows:
- yarn@0:
inputs:
- command: typescript
- cache-push@2:
inputs:
- cache_paths: |-
$HOME/.rbenv
./ios/Pods
./node_modules
$HOME/.gradle
./.gradle
- ignore_check_on_paths: |-
$HOME/.gradle/caches/*.lock
./.gradle/*.lock
./.gradle/*.bin
- deploy-to-bitrise-io@2: {}
prod_android:
description: >
Create Android release build
steps:
- activate-ssh-key@4: {}
- git-clone@6: {}
- cache-pull@2: {}
- yarn@0:
inputs:
- workdir: example
- command: install
- android_build@1:
inputs:
- variant: release
- build_type: apk
- project_location: "./example/android"
- cache-push@2:
inputs:
- cache_paths: |-
$HOME/.rbenv
./ios/Pods
./node_modules
$HOME/.gradle
./.gradle
- ignore_check_on_paths: |-
$HOME/.gradle/caches/*.lock
./.gradle/*.lock
./.gradle/*.bin
- deploy-to-bitrise-io@2: {}
prod_ios:
description: >
Create iOS release build
steps:
- activate-ssh-key@4: {}
- git-clone@6: {}
- cache-pull@2: {}
- yarn@0:
inputs:
- workdir: example
- command: install
- cocoapods-install@2: {}
# TODO: replace with proper bitrise step
- script:
inputs:
- content: |
xcodebuild -workspace ios/reactnativestickyparallaxheaderexample.xcworkspace -scheme reactnativestickyparallaxheaderexamplerelease -sdk iphonesimulator -derivedDataPath ios/build
- cache-push@2:
inputs:
- cache_paths: |-
$HOME/.rbenv
./ios/Pods
./node_modules
$HOME/.gradle
./.gradle
- ignore_check_on_paths: |-
$HOME/.gradle/caches/*.lock
./.gradle/*.lock
./.gradle/*.bin
- deploy-to-bitrise-io@2: {}
meta:
bitrise.io:
stack: osx-xcode-13.2.x
app:
envs:
- opts:
is_expand: false
PLATFORM: all
trigger_map:
- pull_request_source_branch: '*'
pull_request_target_branch: master
workflow: lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1130"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
BuildableName = "reactnativestickyparallaxheaderexample.app"
BlueprintName = "reactnativestickyparallaxheaderexample"
ReferencedContainer = "container:reactnativestickyparallaxheaderexample.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "00E356ED1AD99517003FC87E"
BuildableName = "reactnativestickyparallaxheaderexampleTests.xctest"
BlueprintName = "reactnativestickyparallaxheaderexampleTests"
ReferencedContainer = "container:reactnativestickyparallaxheaderexample.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Release"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
BuildableName = "reactnativestickyparallaxheaderexample.app"
BlueprintName = "reactnativestickyparallaxheaderexample"
ReferencedContainer = "container:reactnativestickyparallaxheaderexample.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
BuildableName = "reactnativestickyparallaxheaderexample.app"
BlueprintName = "reactnativestickyparallaxheaderexample"
ReferencedContainer = "container:reactnativestickyparallaxheaderexample.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"prepare": "bob build",
"release": "release-it",
"example": "yarn --cwd example",
"pods": "echo pods",
"pods": "cd example && pod-install && cd ..",
"bootstrap": "yarn example && yarn && yarn pods",
"prepush": "yarn lint && yarn typescript"
},
Expand All @@ -57,6 +57,7 @@
"eslint-plugin-prettier": "^4.0.0",
"husky": "^4.2.3",
"jest": "27.5.1",
"pod-install": "^0.1.37",
"prettier": "2.6.2",
"react": "17.0.2",
"react-freeze": "1.0.0",
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8189,6 +8189,11 @@ plist@^3.0.2, plist@^3.0.5:
base64-js "^1.5.1"
xmlbuilder "^9.0.7"

pod-install@^0.1.37:
version "0.1.37"
resolved "https://registry.yarnpkg.com/pod-install/-/pod-install-0.1.37.tgz#6ec1cf08fd6259afae6b59136879a679d85a2249"
integrity sha512-sKoBTjb1AfZpFNrKjVAMynsa8v72hw9Ka1eGaC4jeBnKj/Df5jY3ofYt2CMODGYprcT7+eiDo/Pc1a09QZPCcA==

posix-character-classes@^0.1.0:
version "0.1.1"
resolved "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz"
Expand Down

0 comments on commit 97614d0

Please sign in to comment.