Skip to content

Commit

Permalink
fixes #122 with Bitrise YML updates and youtube video
Browse files Browse the repository at this point in the history
  • Loading branch information
bartonhammond committed Aug 16, 2016
1 parent ce316bc commit 5d55d26
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 53 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ The following videos will walk you through setting up CI with BitRise.io
- [Create iOS App](#create-ios-app)
- [iOS install](#ios-install)
- [Android Setup](#android-setup)
- [Addendum #1](#addendum-#1)
- [Things not addressed](#things-not-addressed)

----------
Expand Down Expand Up @@ -370,6 +371,22 @@ alt="Android Setup" width="240" height="180" border="10"/>
* Import YML
* Run build

##### Addendum #1
* **Video **: [XCode Edge Stack, WorkFlow](https://youtu.be/mP5D2MQboxw)
<a
href="http://www.youtube.com/watch?feature=player_embedded&v=mP5D2MQboxw"
target="_blank">
<img src="https://i9.ytimg.com/vi/mP5D2MQboxw/1.jpg?sqp=CPDqzb0F&rs=AOn4CLBdpVDIWghF_-wSuaSKnbPdxHE1hw"
alt="XCode Edge Stack" width="240" height="180" border="10"/>
</a>

* "XCode Edge Stack" for iOS
* New React-Native steps for Install & Bundle
* Upgraded Step versions
* GitHub branch triggers



##### Things not addressed
* Submission to any store
* Working with other CIs
Expand Down
45 changes: 15 additions & 30 deletions bitrise/bitrise-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,75 +2,60 @@
format_version: 1.1.0
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
trigger_map:
- pattern: "*"
- pattern: master
is_pull_request_allowed: true
workflow: primary
workflows:
primary:
steps:
- [email protected].0:
- [email protected].1:
title: Activate App SSH key
inputs:
- ssh_key_save_path: "$HOME/.ssh/steplib_ssh_step_id_rsa"
- [email protected]: {}
- [email protected]:
title: install node & npm
inputs:
- content: |-
#!/bin/bash
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
apt-get install -y nodejs
- [email protected]:
- [email protected]: {}
- [email protected]:
title: npm install
inputs:
- content: |-
#!/bin/bash
npm install
- [email protected].0:
- [email protected].2:
title: npm test
inputs:
- content: |-
#!/bin/bash
npm test
- [email protected]:
title: npm install react-native -g
inputs:
- content: |-
#!/bin/bash
npm install -g react-native-cli
- [email protected]:
- [email protected]: {}
- [email protected]:
title: create config
inputs:
- content: |-
#!/bin/bash
touch src/lib/config.js
echo "module.exports={ PARSE: {APP_ID: '$PARSE_APP_ID' ,REST_API_KEY: '$PARSE_REST_API_KEY', SESSION_TOKEN_KEY: 'SESSION_TOKEN_KEY'}}" >> src/lib/config.js
- [email protected]:
title: bundle-android
- [email protected]:
inputs:
- content: |-
#!/bin/bash
react-native bundle --entry-file ./index.android.js --platform android --bundle-output android/app/src/main/assets/index.android.bundle
- [email protected]:
- platform: android
- entry_file: "./index.android.js"
- out: android/app/src/main/assets/index.android.bundle
- [email protected]:
title: gradlew
inputs:
- content: "#!/bin/bash\n\ncd android \n./gradlew assembleRelease"
opts:
is_expand: true
- sign-apk@0.9.4:
- sign-apk@1.0.1:
inputs:
- apk_path: "/bitrise/src/android/app/build/outputs/apk/app-release-unsigned.apk"
- [email protected].0:
- [email protected].2:
title: cp apk
inputs:
- content: |-
#!/bin/bash
cp $BITRISE_SIGNED_APK_PATH $BITRISE_DEPLOY_DIR/signed-app-release.apk
- [email protected].2:
- [email protected].4:
is_always_run: false
36 changes: 15 additions & 21 deletions bitrise/bitrise-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,54 +10,48 @@ app:
opts:
is_expand: false
trigger_map:
- pattern: "*"
- pattern: master
is_pull_request_allowed: true
workflow: primary
workflows:
primary:
steps:
- [email protected].0:
- [email protected].1:
title: Activate App SSH key
inputs:
- ssh_key_save_path: "$HOME/.ssh/steplib_ssh_step_id_rsa"
- [email protected]: {}
- [email protected]:
- [email protected]:
inputs:
- clone_depth: '1'
- [email protected]:
title: npm install
inputs:
- content: |-
#!/bin/bash
npm install
- [email protected].0:
- [email protected].2:
title: npm test
inputs:
- content: |-
#!/bin/bash
npm test
- [email protected]:
title: npm install react-native -g
inputs:
- content: |-
#!/bin/bash
npm install -g react-native-cli
- [email protected]:
- [email protected]: {}
- [email protected]:
title: create config
inputs:
- content: |-
#!/bin/bash
touch src/lib/config.js
echo "module.exports={ PARSE: {APP_ID: '$PARSE_APP_ID' ,REST_API_KEY: '$PARSE_REST_API_KEY', SESSION_TOKEN_KEY: 'SESSION_TOKEN_KEY'}}" >> src/lib/config.js
- [email protected]:
title: bundle-ios
- [email protected]:
inputs:
- content: |-
#!/bin/bash
react-native bundle --entry-file ./index.ios.js --platform ios --bundle-output ios/main.jsbundle
- [email protected]: {}
- [email protected]:
- entry_file: "./index.ios.js"
- out: ios/main.jsbundle
- [email protected]: {}
- [email protected]:
inputs:
- lane: ios beta
- [email protected].0: {}
- [email protected].4: {}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "snowflake",
"version": "0.1.5",
"version": "0.1.6",
"private": true,
"jest": {
"preset": "jest-react-native",
Expand Down Expand Up @@ -47,7 +47,7 @@
"babel-core": "6.9.0",
"babel-jest": "14.0.0",
"babel-preset-react-native": "1.8.0",
"docker": "0.2.14",
"docker": "1.0.0",
"istanbul": "0.4.3",
"jest": "14.0.0",
"jest-react-native": "14.0.0",
Expand Down

0 comments on commit 5d55d26

Please sign in to comment.