Skip to content

Commit 51415ca

Browse files
committed
Setup semaphore Android & iOS
2 parents 119d16c + 9634d9d commit 51415ca

File tree

4 files changed

+139
-1
lines changed

4 files changed

+139
-1
lines changed

.semaphore/android.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
version: v1.0
2+
name: React Native Android
3+
agent:
4+
machine:
5+
type: e1-standard-2
6+
os_image: ubuntu1804
7+
containers:
8+
- name: main
9+
image: 'registry.semaphoreci.com/android:29-node'
10+
11+
blocks:
12+
- name: Bundle android
13+
task:
14+
jobs:
15+
- name: install & build
16+
commands:
17+
- checkout
18+
- npm i -g yarn
19+
- cache restore yarn-$(checksum yarn.lock)
20+
- yarn install --frozen-lockfile
21+
- cache store yarn-$(checksum yarn.lock) node_modules
22+
- cd android
23+
- ./gradlew bundleRelease assembleRelease
24+
- artifact push job app/build/outputs

.semaphore/ios.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
version: v1.0
2+
name: React Native iOS
3+
agent:
4+
machine:
5+
type: a1-standard-4
6+
os_image: macos-xcode12
7+
8+
blocks:
9+
- name: Build ios
10+
task:
11+
env_vars:
12+
- name: LANG
13+
value: en_US.UTF-8
14+
jobs:
15+
- name: install & build
16+
commands:
17+
- checkout
18+
- brew install yarn
19+
- cache restore yarn-$(checksum yarn.lock)
20+
- yarn install --frozen-lockfile
21+
- cache store yarn-$(checksum yarn.lock) node_modules
22+
- cd ios
23+
- pod install
24+
- xcodebuild clean archive -workspace testCiCdReactNative.xcworkspace -scheme testCiCdReactNative -archivePath testCiCdReactNative.xcarchive CODE_SIGNING_ALLOWED=NO | xcpretty

ENVINFO.md

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
- [CircleCI (android)](#circleci-android)
2222
- [Codemagic (android)](#codemagic-android)
2323
- [Gitlab CI (android)](#gitlab-ci-android)
24+
- [Semaphore CI (ios)](#semaphore-ci-ios)
25+
- [Semaphore CI (android)](#semaphore-ci-android)
2426

2527
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
2628

@@ -906,3 +908,90 @@ Databases:
906908
SQLite: 3.32.2 - /opt/android/sdk/platform-tools/sqlite3
907909
```
908910

911+
### Semaphore CI (ios)
912+
913+
```shell script
914+
System:00:04
915+
OS: macOS 10.15.400:04
916+
CPU: (4) x64 Intel(R) Xeon(R) CPU E5-2697 v2 @ 2.70GHz00:04
917+
Memory: 5.12 GB / 8.00 GB00:04
918+
Shell: 3.2.57 - /bin/bash00:04
919+
Binaries:00:04
920+
Node: 13.12.0 - /var/folders/rg/92ky7bj54xj6pcv5l24g6l_00000gn/T/yarn--1605385389338-0.7070170598948544/node00:04
921+
Yarn: 1.22.4 - /var/folders/rg/92ky7bj54xj6pcv5l24g6l_00000gn/T/yarn--1605385389338-0.7070170598948544/yarn00:04
922+
npm: 6.14.4 - /usr/local/bin/npm00:04
923+
Watchman: 4.9.0 - /usr/local/bin/watchman00:04
924+
Managers:00:04
925+
CocoaPods: 1.10.0 - /Users/semaphore/.rbenv/shims/pod00:04
926+
Homebrew: 2.4.3 - /usr/local/bin/brew00:04
927+
pip3: 20.0.2 - /usr/local/bin/pip300:04
928+
RubyGems: 2.7.6 - /Users/semaphore/.rbenv/shims/gem00:04
929+
Utilities:00:04
930+
Make: 3.81 - /usr/bin/make00:04
931+
GCC: 12.0. - /usr/bin/gcc00:04
932+
Git: 2.26.1 - /usr/local/bin/git00:04
933+
Clang: 1200.0.22.19 - /usr/bin/clang00:04
934+
Subversion: 1.10.4 - /usr/bin/svn00:04
935+
Servers:00:04
936+
Apache: 2.4.41 - /usr/sbin/apachectl00:04
937+
SDKs:00:04
938+
iOS SDK:00:04
939+
Platforms: iOS 14.0, DriverKit 20.0, macOS 11.000:04
940+
IDEs:
941+
00:04
942+
Nano: 2.0.6 - /usr/bin/nano00:04
943+
Vim: 8.1 - /usr/bin/vim00:04
944+
Xcode: 12.0/12A8158a - /usr/bin/xcodebuild00:04
945+
Languages:00:04
946+
Bash: 3.2.57 - /bin/bash00:04
947+
Java: javac 14 - /usr/bin/javac00:04
948+
Perl: 5.18.4 - /usr/bin/perl00:04
949+
PHP: 7.3.11 - /usr/bin/php00:04
950+
Python: 2.7.16 - /usr/bin/python00:04
951+
Python3: 3.7.7 - /usr/local/bin/python300:04
952+
Ruby: 2.5.1 - /Users/semaphore/.rbenv/shims/ruby00:04
953+
Databases:00:04
954+
SQLite: 3.28.0 - /usr/bin/sqlite300:04
955+
```
956+
957+
### Semaphore CI (android)
958+
959+
```shell script
960+
System:
961+
OS: Linux 4.15 Debian GNU/Linux 10 (buster) 10 (buster)
962+
CPU: (2) x64 Intel Core Processor (Haswell)
963+
Memory: 2.02 GB / 3.85 GB
964+
Container: Yes
965+
Shell: 5.0.3 - /bin/bash
966+
Binaries:
967+
Node: 10.22.1 - /tmp/yarn--1605262512805-0.533221535200799/node
968+
Yarn: 1.22.10 - /tmp/yarn--1605262512805-0.533221535200799/yarn
969+
npm: 6.14.6 - /usr/bin/npm
970+
Managers:
971+
Apt: 1.8.2.1 - /usr/bin/apt
972+
Gradle: 4.4.1 - /usr/bin/gradle
973+
Maven: 3.6.0 - /usr/bin/mvn
974+
RubyGems: 3.0.1 - /opt/rubies/ruby-2.6.1/bin/gem
975+
Utilities:
976+
Make: 4.2.1 - /usr/bin/make
977+
GCC: 8.3.0 - /usr/bin/gcc
978+
Git: 2.20.1 - /usr/bin/git
979+
Mercurial: 4.8.2 - /usr/bin/hg
980+
Virtualization:
981+
Docker: 19.03.9 - /usr/bin/docker
982+
SDKs:
983+
Android SDK:
984+
API Levels: 25, 26, 27, 28, 29
985+
Build Tools: 25.0.3, 26.0.1, 26.0.2, 27.0.0, 27.0.1, 27.0.2, 27.0.3, 28.0.0, 28.0.1, 28.0.2, 28.0.3, 29.0.1, 29.0.2
986+
IDEs:
987+
Vim: 8.1 - /usr/bin/vim
988+
Languages:
989+
Bash: 5.0.3 - /bin/bash
990+
Java: 1.8.0_272 - /usr/local/openjdk-8/bin/javac
991+
Perl: 5.28.1 - /usr/bin/perl
992+
Python: 2.7.16 - /usr/bin/python
993+
Python3: 3.7.3 - /usr/bin/python3
994+
Ruby: 2.6.1 - /opt/rubies/ruby-2.6.1/bin/ruby
995+
Databases:
996+
SQLite: 3.32.2 - /opt/android-sdk-linux/platform-tools/sqlite3
997+
```

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Then I add a lot of native libraries to check how it cause build time
4242
| [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) | 07m44s / 12m47s | - |
4343
| [Bitbucket Pipelines](https://bitbucket.org/product/ru/features/pipelines) | [n/a](https://bitbucket.org/retyui/react-native-ci-cd-compare/addon/pipelines/home) | **01m53s / 03m28s** 🚀 | - |
4444
| [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) | [![Build Status](https://dev.azure.com/retyui/react-native-ci-cd-compare/_apis/build/status/retyui.react-native-ci-cd-compare?branchName=refs%2Fpull%2F1%2Fmerge)](https://dev.azure.com/retyui/react-native-ci-cd-compare/_build/latest?definitionId=1&branchName=refs%2Fpull%2F1%2Fmerge) | 04m04s / 06m26s | 16m19s / 20m20s |
45-
45+
| [Semaphore CI](https://semaphoreci.com/) | [![Build Status](https://retyui.semaphoreci.com/badges/react-native-ci-cd-compare/branches/main.svg)](https://retyui.semaphoreci.com/projects/react-native-ci-cd-compare) | **02m42s** 🚀 | 14m10s |
4646

4747
## Limitations of CI/CD services
4848

@@ -68,6 +68,7 @@ Then I add a lot of native libraries to check how it cause build time
6868

6969
- [appcircle](https://appcircle.io/pricing/) 1 Concurrent Build, 20 minutes max build time per build, 25 Builds per Month
7070

71+
- [Semaphore CI](https://semaphoreci.com/blog/2014/08/14/semaphore-gets-free.html) becomes free for open source **(unlimited testing and deployment of open source projects)**
7172

7273
---
7374

0 commit comments

Comments
 (0)