Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fairchat.ReactNative
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hosting
chat
fairchat.ReactNative
Commits
89c17847
Unverified
Commit
89c17847
authored
7 years ago
by
Rodrigo Nascimento
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix build of PRs from forks (#184)
parent
78fb33b1
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.circleci/config.yml
+23
-7
23 additions, 7 deletions
.circleci/config.yml
ios/fastlane/Fastfile
+17
-13
17 additions, 13 deletions
ios/fastlane/Fastfile
ios/fastlane/README.md
+2
-2
2 additions, 2 deletions
ios/fastlane/README.md
ios/fastlane/report.xml
+5
-5
5 additions, 5 deletions
ios/fastlane/report.xml
with
47 additions
and
27 deletions
.circleci/config.yml
+
23
−
7
View file @
89c17847
...
@@ -72,11 +72,16 @@ jobs:
...
@@ -72,11 +72,16 @@ jobs:
command
:
|
command
:
|
cd android
cd android
echo $KEYSTORE_BASE64 | base64 --decode > ./app/$KEYSTORE
echo -e "" > ./gradle.properties
echo -e "KEYSTORE=$KEYSTORE" > ./gradle.properties
echo -e "KEYSTORE_PASSWORD=$KEYSTORE_PASSWORD" >> ./gradle.properties
if [[ $KEYSTORE ]]; then
echo -e "KEY_ALIAS=$KEY_ALIAS" >> ./gradle.properties
echo $KEYSTORE_BASE64 | base64 --decode > ./app/$KEYSTORE
echo -e "KEY_PASSWORD=$KEYSTORE_PASSWORD" >> ./gradle.properties
echo -e "KEYSTORE=$KEYSTORE" >> ./gradle.properties
echo -e "KEYSTORE_PASSWORD=$KEYSTORE_PASSWORD" >> ./gradle.properties
echo -e "KEY_ALIAS=$KEY_ALIAS" >> ./gradle.properties
echo -e "KEY_PASSWORD=$KEYSTORE_PASSWORD" >> ./gradle.properties
fi
echo -e "VERSIONCODE=$CIRCLE_BUILD_NUM" >> ./gradle.properties
echo -e "VERSIONCODE=$CIRCLE_BUILD_NUM" >> ./gradle.properties
-
run
:
-
run
:
...
@@ -89,7 +94,11 @@ jobs:
...
@@ -89,7 +94,11 @@ jobs:
name
:
Build Android App
name
:
Build Android App
command
:
|
command
:
|
cd android
cd android
./gradlew assembleRelease
if [[ $KEYSTORE ]]; then
./gradlew assembleRelease
else
./gradlew assembleDebug
fi
mkdir -p /tmp/build
mkdir -p /tmp/build
...
@@ -155,7 +164,14 @@ jobs:
...
@@ -155,7 +164,14 @@ jobs:
command
:
|
command
:
|
cd ios
cd ios
agvtool new-version -all $CIRCLE_BUILD_NUM
agvtool new-version -all $CIRCLE_BUILD_NUM
fastlane ios build
if [[ $MATCH_KEYCHAIN_NAME ]]; then
fastlane ios release
else
export MATCH_KEYCHAIN_NAME="temp"
export MATCH_KEYCHAIN_PASSWORD="temp"
fastlane ios build
fi
-
store_artifacts
:
-
store_artifacts
:
path
:
ios/RocketChatRN.ipa
path
:
ios/RocketChatRN.ipa
...
...
This diff is collapsed.
Click to expand it.
ios/fastlane/Fastfile
+
17
−
13
View file @
89c17847
...
@@ -47,20 +47,8 @@ platform :ios do
...
@@ -47,20 +47,8 @@ platform :ios do
# You can also use other beta testing services here (run `fastlane actions`)
# You can also use other beta testing services here (run `fastlane actions`)
end
end
desc
"
Deploy a new version to the App Stor
e"
desc
"
Build App for releas
e"
lane
:release
do
lane
:release
do
# match(type: "appstore")
# snapshot
match
(
type:
"appstore"
,
git_url:
"git@github.com:RocketChat/Rocket.Chat.ReactNative.FastLane.git"
)
# more information: https://codesigning.guide
deliver
(
force:
true
)
# frameit
end
desc
"Build App"
lane
:build
do
# match(type: "appstore")
# match(type: "appstore")
# snapshot
# snapshot
match
(
match
(
...
@@ -72,6 +60,22 @@ platform :ios do
...
@@ -72,6 +60,22 @@ platform :ios do
# frameit
# frameit
end
end
desc
"Build App for development"
lane
:build
do
|
options
|
xcodebuild
(
project:
"RocketChatRN.xcodeproj"
,
scheme:
"RocketChatRN"
,
configuration:
"Debug"
,
clean:
options
[
:clean
],
build:
true
,
destination:
"generic/platform=iOS"
,
build_settings:
{
"CODE_SIGNING_REQUIRED"
=>
"NO"
,
"CODE_SIGN_IDENTITY"
=>
""
}
)
end
# You can define as many lanes as you want
# You can define as many lanes as you want
after_all
do
|
lane
|
after_all
do
|
lane
|
...
...
This diff is collapsed.
Click to expand it.
ios/fastlane/README.md
+
2
−
2
View file @
89c17847
...
@@ -46,12 +46,12 @@ This will also make sure the profile is up to date
...
@@ -46,12 +46,12 @@ This will also make sure the profile is up to date
```
```
fastlane ios release
fastlane ios release
```
```
Deploy a new version to the App Stor
e
Build App for releas
e
### ios build
### ios build
```
```
fastlane ios build
fastlane ios build
```
```
Build App
Build App
for development
----
----
...
...
This diff is collapsed.
Click to expand it.
ios/fastlane/report.xml
+
5
−
5
View file @
89c17847
...
@@ -5,27 +5,27 @@
...
@@ -5,27 +5,27 @@
<testcase
classname=
"fastlane.lanes"
name=
"0: Verifying required fastlane version"
time=
"0.00
3408
"
>
<testcase
classname=
"fastlane.lanes"
name=
"0: Verifying required fastlane version"
time=
"0.00
2207
"
>
</testcase>
</testcase>
<testcase
classname=
"fastlane.lanes"
name=
"1: default_platform"
time=
"0.00
3022
"
>
<testcase
classname=
"fastlane.lanes"
name=
"1: default_platform"
time=
"0.00
2098
"
>
</testcase>
</testcase>
<testcase
classname=
"fastlane.lanes"
name=
"2:
match"
time=
"12.238978
"
>
<testcase
classname=
"fastlane.lanes"
name=
"2:
create_keychain"
time=
"0.106586
"
>
</testcase>
</testcase>
<testcase
classname=
"fastlane.lanes"
name=
"3:
gym"
time=
"237.52302
"
>
<testcase
classname=
"fastlane.lanes"
name=
"3:
xcodebuild"
time=
"170.328674
"
>
</testcase>
</testcase>
<testcase
classname=
"fastlane.lanes"
name=
"4:
pilot"
time=
"72.313015
"
>
<testcase
classname=
"fastlane.lanes"
name=
"4:
delete_keychain"
time=
"0.060332
"
>
</testcase>
</testcase>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment