Skip to content
This repository was archived by the owner on Dec 20, 2021. It is now read-only.

Commit fc9ced9

Browse files
committed
feat: Add custom build command to build android
1 parent 33ffc6b commit fc9ced9

File tree

9 files changed

+2023
-1460
lines changed

9 files changed

+2023
-1460
lines changed

.circleci/config.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2.1
22

33
orbs:
4-
cli: circleci/[email protected].2
4+
cli: circleci/[email protected].8
55
orb-tools: circleci/orb-tools@2
66

77
jobs:
@@ -49,7 +49,9 @@ jobs:
4949
echo 'github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==' >> ~/.ssh/known_hosts
5050
- run:
5151
name: Publish to CircleCI Orb Registry
52-
command: yarn semantic-release
52+
command: |
53+
cat package.json
54+
yarn semantic-release
5355
5456
workflows:
5557
btd:
@@ -58,7 +60,7 @@ workflows:
5860

5961
- orb-tools/publish:
6062
orb-path: packed-orb.yml
61-
orb-ref: "react-native-community/react-native@dev:${CIRCLE_BRANCH}"
63+
orb-ref: "capmo/react-native@dev:${CIRCLE_BRANCH}"
6264
publish-token-variable: CIRCLECI_API_TOKEN
6365
attach-workspace: true
6466
checkout: false

.releaserc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"semantic-release-circleci-orb",
1414
{
1515
"commandName": "/home/circleci/circleci",
16-
"orbName": "react-native-community/react-native",
16+
"orbName": "capmo/react-native",
1717
"orbPath": "packed-orb.yml"
1818
}
1919
],

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@react-native-community/circleci-orb",
2+
"name": "@capmo/circleci-orb",
33
"version": "4.4.2",
44
"private": true,
55
"description": "A CircleCI Orb which can be used to simplify building and testing React Native apps.",
@@ -8,19 +8,19 @@
88
"semantic-release": "semantic-release"
99
},
1010
"devDependencies": {
11-
"@semantic-release/changelog": "^3.0.2",
12-
"@semantic-release/git": "^7.0.8",
13-
"semantic-release": "^15.13.3",
11+
"@semantic-release/changelog": "^5.0.1",
12+
"@semantic-release/git": "^9.0.0",
13+
"semantic-release": "^17.3.3",
1414
"semantic-release-circleci-orb": "^1.1.1"
1515
},
1616
"repository": {
1717
"type": "git",
18-
"url": "https://github.com/react-native-community/react-native-circleci-orb.git"
18+
"url": "https://github.com/capmo/react-native-circleci-orb.git"
1919
},
2020
"author": "Matt Oakes <[email protected]>",
2121
"license": "MIT",
2222
"bugs": {
23-
"url": "https://github.com/react-native-community/react-native-circleci-orb/issues"
23+
"url": "https://github.com/capmo/react-native-circleci-orb/issues"
2424
},
25-
"homepage": "https://github.com/react-native-community/react-native-circleci-orb#readme"
26-
}
25+
"homepage": "https://github.com/capmo/react-native-circleci-orb#readme"
26+
}

src/@orb.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
version: 2.1
22
description: |
33
Orb for building and testing React Native projects. View
4-
this orb's source: https://github.com/react-native-community/react-native-circleci-orb
4+
this orb's source: https://github.com/capmo/react-native-circleci-orb

src/commands/android_build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ parameters:
99
description: The build type to build. This is normally either "debug" or "release" but you may have custom build types configured for your app.
1010
type: string
1111
default: "debug"
12+
build_command:
13+
description: Custom build command
14+
type: string
15+
default: "cd <<parameters.project_path>> && chmod +x gradlew && ./gradlew --build-cache --max-workers 2 --continue assemble<<parameters.build_type>> assembleAndroidTest -DtestBuildType=<<parameters.build_type>> --stacktrace"
16+
1217

1318
steps:
1419
- run:
@@ -59,7 +64,7 @@ steps:
5964

6065
- run:
6166
name: Build Android APK
62-
command: "cd <<parameters.project_path>> && chmod +x gradlew && ./gradlew --build-cache --max-workers 2 --continue assemble<<parameters.build_type>> assembleAndroidTest -DtestBuildType=<<parameters.build_type>> --stacktrace"
67+
command: <<parameters.build_command>>
6368

6469
- run:
6570
name: Collecting Gradle Build caches for saving

src/examples/android.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ usage:
55

66
# Make sure you use the latest version of the Orb
77
orbs:
8-
rn: react-native-community/[email protected]
8+
99

1010
# Custom jobs which are not part of the Orb
1111
jobs:

src/examples/full.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ usage:
55

66
# Make sure you use the latest version of the Orb
77
orbs:
8-
rn: react-native-community/[email protected]
8+
99

1010
# Custom jobs which are not part of the Orb
1111
jobs:

src/examples/ios.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ usage:
55

66
# Make sure you use the latest version of the Orb
77
orbs:
8-
rn: react-native-community/[email protected]
8+
99

1010
# Custom jobs which are not part of the Orb
1111
jobs:

0 commit comments

Comments
 (0)