Skip to content

Commit e7c9ba6

Browse files
committed
tmp
1 parent d2a548b commit e7c9ba6

File tree

10 files changed

+69
-0
lines changed

10 files changed

+69
-0
lines changed

.circleci/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
key: yarn-v1-{{ checksum "yarn.lock" }}-{{ arch }}
1212
- restore_cache:
1313
key: node-v1-{{ checksum "package.json" }}-{{ arch }}
14+
- run: npx envinfo
1415
- run: yarn install --frozen-lockfile
1516
- save_cache:
1617
key: yarn-v1-{{ checksum "yarn.lock" }}-{{ arch }}
@@ -35,6 +36,7 @@ jobs:
3536
path: ~/app
3637
- attach_workspace:
3738
at: ~/app
39+
- run: npx envinfo
3840
- run:
3941
name: Bundle *.aap & *.apk
4042
command: ./gradlew bundleRelease assembleRelease

.github/workflows/android.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
restore-keys: |
3131
${{ runner.os }}-yarn-
3232
33+
- run: npx envinfo
34+
3335
- name: Install node dependencies
3436
run: yarn install --frozen-lockfile
3537

.gitlab-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ stages:
66
default:
77
interruptible: true
88
before_script:
9+
- npx envinfo
910
- yarn install --frozen-lockfile
1011

1112
cache:

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ cache:
4848

4949
install:
5050
- nvm install $NODE_VERSION && nvm use $NODE_VERSION && nvm alias default $NODE_VERSION && node --version && npm i -g yarn
51+
- npx envinfo
5152
- yarn install --frozen-lockfile
5253

5354
script:

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ Then I add a lot of native libraries to check how it cause build time (see colum
1818
| [Nevercode](https://nevercode.io/blog/continuous-integration-for-react-native/) | [![Nevercode build status](https://app.nevercode.io/api/projects/8b869647-61e1-43bf-bc3e-c630f6099205/workflows/b81b5cb7-0ebe-43d1-92e0-81261d790fcc/status_badge.svg?branch=main)](https://app.nevercode.io/#/project/8b869647-61e1-43bf-bc3e-c630f6099205) | 11 min 4 sec | 13 min 22 sec |
1919
| [appcircle](https://appcircle.io/blog/guide-to-automated-mobile-ci-cd-for-react-native-appcircle/) | [n/a](https://my.appcircle.io/build/detail/f552b6ad-96fd-43fe-bffc-55f4268ee0d4) | 7 min 16 sec | 10 min 53 sec |
2020
| [Gitlab CI/CD](https://docs.gitlab.com/ee/ci/) | [![GitLab CI status](https://gitlab.com/retyui/react-native-ci-cd-compare/badges/main/pipeline.svg)](https://gitlab.com/retyui/react-native-ci-cd-compare/-/jobs) | 7 min 44 sec | 12 min 47 sec |
21+
| [Bitbucket Pipelines](https://bitbucket.org/product/ru/features/pipelines) | [![Bitbucket Pipelines](https://img.shields.io/bitbucket/pipelines/retyui/react-native-ci-cd-compare/main)](https://bitbucket.org/retyui/react-native-ci-cd-compare/addon/pipelines/home) | 1 min 53 sec 🚀 | 3 min 28 sec 🚀 |
22+
| [Azure DevOps](https://techcommunity.microsoft.com/t5/windows-dev-appconsult/using-azure-devops-to-create-a-ci-cd-pipeline-for-an-android/ba-p/1094422) | badge | ? | ? |
23+
2124

2225

2326
## iOS builds (TODO)

azure-pipelines-android.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# https://techcommunity.microsoft.com/t5/windows-dev-appconsult/using-azure-devops-to-create-a-ci-cd-pipeline-for-an-android/ba-p/1094422
2+
# Based on: https://github.com/staff0rd/react-native-pipeline/blob/master/azure-pipelines-android.yml
3+
4+
trigger:
5+
- main
6+
7+
pool:
8+
vmImage: 'ubuntu-latest'
9+
10+
steps:
11+
- task: NodeTool@0
12+
displayName: 'Install Node'
13+
inputs:
14+
versionSpec: '14.15.0'
15+
16+
- script: npx envinfo
17+
18+
- script: yarn install
19+
displayName: 'Install node dependencies'
20+
21+
- task: Gradle@2
22+
inputs:
23+
workingDirectory: 'android'
24+
gradleWrapperFile: 'android/gradlew'
25+
gradleOptions: '-Xmx3072m'
26+
tasks: 'bundleRelease assembleRelease'
27+
28+
- task: PublishBuildArtifacts@1
29+
inputs:
30+
pathtoPublish: android/app/build/outputs/apk/release/app-release.apk
31+
artifactName: drop
32+
publishLocation: 'container'
33+
34+
- task: PublishBuildArtifacts@1
35+
inputs:
36+
pathtoPublish: android/app/build/outputs/bundle/release/app-release.aab
37+
artifactName: drop
38+
publishLocation: 'container'

bitbucket-pipelines.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
image: reactnativecommunity/react-native-android
2+
3+
pipelines:
4+
default:
5+
- step:
6+
name: Build Android
7+
caches:
8+
- node
9+
- gradle
10+
script:
11+
- npx envinfo
12+
- yarn install --frozen-lockfile
13+
- cd android && chmod +x gradlew && ./gradlew bundleRelease assembleRelease
14+
artifacts:
15+
- android/app/build/outputs/**

bitrise.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ workflows:
1111
- cache-pull@2:
1212
inputs:
1313
- is_debug_mode: 'true'
14+
15+
inputs:
16+
- content: |-
17+
#!/usr/bin/env bash
18+
npx envinfo
1419
- yarn@0:
1520
inputs:
1621
- command: install

buddy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- "export BUILD_TOOLS_VER=\"28.0.3\""
1717
- "export PATH=$PATH:/opt/android/sdk/build-tools/$BUILD_TOOLS_VER"
1818
- "#build"
19+
- "npx envinfo"
1920
- "npm i -g yarn"
2021
- "yarn install --frozen-lockfile"
2122
- "cd ./android"

codemagic.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ workflows:
1313
- ~/.cache/yarn/v6
1414

1515
scripts:
16+
- npx envinfo
1617
- yarn install --frozen-lockfile
1718
- echo "sdk.dir=$HOME/programs/android-sdk-macosx" > "$FCI_BUILD_DIR/android/local.properties"
1819
- cd android && ./gradlew bundleRelease assembleRelease

0 commit comments

Comments
 (0)