Skip to content

Commit

Permalink
Fastline (#93)
Browse files Browse the repository at this point in the history
* fastlate. It is disabled for now as we still need an account for ios and a key for android
  • Loading branch information
sebastianovide authored Jan 7, 2019
1 parent cb8cb6d commit 86fbb6f
Show file tree
Hide file tree
Showing 9 changed files with 116 additions and 217 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,4 @@ scripts/config.json
**/*.cer
**/*.p12
**/*.mobileprovision
**/report.xml
28 changes: 28 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ matrix:
- git config --local user.email "[email protected]"
- export TRAVIS_TAG=${binary:-$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)}
- git tag $TRAVIS_TAG
# - gem install fastlane -NV

env:
- secure: "CLic/Dhru12PIvTZrBKQIV7YXiiH216Nd0ku0t89sZ+QHVeuuyJZaYPEdP/eFtl9aoN8CEazIkFOgjYjJqhkN6ilYPp3IaQ2s8lbu+gzCi3jcBDGCxwxUGipFiCSZWYHx4xwVg4SPi9mmJYjsHMSsh65meLtJE6hQ5TBcFbCyjt/b5Be2Y3n3w5fZvrBl94hrVxjI1rv3R2a1/PACIfuArvFtEO2FQl+3mq565qyNVAuY2282PocDMY7qp896HUGefBjByoPb21oOQhbnStLBga1nmNjPqYGZG6KIkmTz52yjLRSwXCPwrKHWDlzarGoIGF0EpHF7FvvZnVN8SA0hx4hTaD43ewsNhORg08dGBvFDCWgsQn7XOgheJT6KXHx8kBjWGLEDBssQTh79siGQe0IGJgUixTht1c+OqXOWhHRoD+Cyz1Wnwc0APOS39vT+Nz3oPS1L7UbrcWq8Stk/A/ZDfpxCz55UJ07KbXzyy/U6/0XupMUG/k5hY8HSET9GhLxsVpeMysrIAszOa0ffJDfr+52VvnWWVlCu/DYvbmk3aOF1g/Ke+Ar0p/ZTFgFx5pobaAkcBGkXwRke5HJEFM1bmMvxUILJp3NANeqsZDJHLY57T/2PM1S0dj+PdaFj3iQ7y/7YjS3s+c0YmEZFpx3zOHZDh1X5sjMTenr8Bw="

deploy:
- provider: firebase
skip_cleanup: true
Expand All @@ -55,6 +60,10 @@ matrix:
secure: X29iYfl6eW1lGrzk2B8VlZsYi0iCeLE18ZCp23LUPuLqGWEVne/SQf/wwf0EmMoBRBG4X+cs/xFzraA4wdpMXmwJjJo+XvH9SFIw2jfVKwHHwpWnLGcq/9mK14p4tUB5TxhCboH67UqmZqqV2MJ9cuJeEQSxaY0Dh1pOxJruftpXp+mKjoLB2hEhY82Yu+NA0k0JwSdCfb0opPIXelqNmrjgwuLpQgnvKjMK9Mu9meGFwdOYa8dq3oMetLknTcro6IX2DMuxCYR7qUq1BcnA+1vnu/UsvZyRy/25I890WK3B0uVs6NiIwmNNrctxViOmBCo6wInLxqfTKBgHB2DAHJavlQZMMaj/7o81+YF4Egpi7t9XE7BR1DPWxMsDxTHHWIcgWsr25Yk7aFAH+3yEDexqxSscYQvMM5ISsX8ofvFCLRYwyAAjWib04d1SoEKTfrua9pL/TRx0J1Y7lJ21wnj4kbzmstuCvDLxt9QzEY9WXC/AQnkYz1CpuR7QIGZKxyYU/7aZbLjQfAaQp0GnAHxiwwAS9ofIovEh18Q2r1BGIpCnI4Zosfq/5eTY9dz+JCpKvOr52HqT+up7OiPbfIbtmXYS38Go/MMOLlMnRN6bvbQQHc2Al8S0c29WZtpOfkRcqbpx+fcZ80UexEouCKkmrIROXEWruZDMTBMcD2k=
file: cordova-app/platforms/android/app/build/outputs/apk/release/app-release.apk
skip_cleanup: true
# - provider: script
# skip_cleanup: true
# script: npm run beta:android

- os: osx
if: tag IS blank
language: objective-c
Expand All @@ -63,6 +72,8 @@ matrix:
- '8'
env:
- secure: jfdXsl7ajV/xQNW47p1yyEKDkMfxMRqOQE6U/vmGTKA78SLwvCYYjQUksXh8Tupoiz71mDF5qzUL7Y1tuKONlFeMOh4Qmkcyom33+lzPUeiF3lQpPocLNMP2Y77HnuKQiPb9dpdPAzpAHoVrETT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u/DYvbmk3aOF1g/Ke+Ar0p/ZTFgFx5pobaAkcBGkXwRke5HJEFM1bmMvxUILJp3NANeqsZDJHLY57T/2PM1S0dj+PdaFj3iQ7y/7YjS3s+c0YmEZFpx3zOHZDh1X5sjMTenr8Bw="
- secure: "L6I3Gp97PYCYJmlJYBqLSq+nXtpsixNLc69Njk7f+LhI0qH2QjZsgZHyFGlo5UL7X52Qy6VwvXZuVSUYpJYD/nzMLtWelVMXIF5vz9P2aOiFTTdbd3tnF2xYP/9qsI9h6rFED7zAYe1Wogdz0UdmLjXQUCnPr5M3wEuf7SyuUMSI9p7N+T2bGqefqfKdCHuRQgwTjIO3G2oPpqkj6q5k26ckt8LOaz5M3S9xLAxjE33VbCAO9wvTTnF/cgmC2K63rkUogsK7//IM1BG9p4IVUqXSCYYpbgA+/Hk/U9plIZgDFk8cHW7pMhIjP+NgQ/o1RBFwOztHYhdimc4pBSqidH+xyCDuD31iR6Ej1bD94sAmvOWFj2MBSf3NYpzl2R5qrN6h7Py7ZHQTUtWLLSFmB/t3qx3bgLECca2saSS6EyJmatPdBJQW6kw0aJdYrBgJOqUQk4v6YJ6+wVEhwKnqN6tn7Bsux0Y2sWLANwXXYi2BZly0X2MYPqvNb1VSVqzVIhd3qtyfsT+PMh34/1+XANS7FyJ/Os5taLTKZL1YfSGWyalNETFYLIbJIuBkcHfvjxlGF/RdcF3W8xy1wVTNkGLkDJPuNt6T3Pqj9NZCkyxvBQm9Pepe4T7ktcIF8N0sBL/K2eo581VfyF50yaTQoMd6Axx7nK4ma7tdSVq2njs="
cache:
directories:
- node_modules/
Expand All @@ -78,3 +89,20 @@ matrix:
- npm run build:ios
install:
- npm install
before_deploy:
- npm run build
- git config --local user.name "Geovation from Travis"
- git config --local user.email "[email protected]"
- export TRAVIS_TAG=${binary:-$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)}
- git tag $TRAVIS_TAG
# - gem install fastlane -NV
deploy:
- provider: releases
api_key:
secure: X29iYfl6eW1lGrzk2B8VlZsYi0iCeLE18ZCp23LUPuLqGWEVne/SQf/wwf0EmMoBRBG4X+cs/xFzraA4wdpMXmwJjJo+XvH9SFIw2jfVKwHHwpWnLGcq/9mK14p4tUB5TxhCboH67UqmZqqV2MJ9cuJeEQSxaY0Dh1pOxJruftpXp+mKjoLB2hEhY82Yu+NA0k0JwSdCfb0opPIXelqNmrjgwuLpQgnvKjMK9Mu9meGFwdOYa8dq3oMetLknTcro6IX2DMuxCYR7qUq1BcnA+1vnu/UsvZyRy/25I890WK3B0uVs6NiIwmNNrctxViOmBCo6wInLxqfTKBgHB2DAHJavlQZMMaj/7o81+YF4Egpi7t9XE7BR1DPWxMsDxTHHWIcgWsr25Yk7aFAH+3yEDexqxSscYQvMM5ISsX8ofvFCLRYwyAAjWib04d1SoEKTfrua9pL/TRx0J1Y7lJ21wnj4kbzmstuCvDLxt9QzEY9WXC/AQnkYz1CpuR7QIGZKxyYU/7aZbLjQfAaQp0GnAHxiwwAS9ofIovEh18Q2r1BGIpCnI4Zosfq/5eTY9dz+JCpKvOr52HqT+up7OiPbfIbtmXYS38Go/MMOLlMnRN6bvbQQHc2Al8S0c29WZtpOfkRcqbpx+fcZ80UexEouCKkmrIROXEWruZDMTBMcD2k=
file: cordova-app/platforms/ios/build/device/Plastic\ Patrol.ipa
skip_cleanup: true

# - provider: script
# skip_cleanup: true
# script: npm run beta:ios
3 changes: 1 addition & 2 deletions cordova-app/config.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<widget android-versionCode="20000" id="uk.co.plasticpatrol" ios-CFBundleIdentifier="com.lewismakesapps.Plastic-Patrol" ios-CFBundleVersion="0.2.0" version="0.2.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget android-versionCode="20000000" id="uk.co.plasticpatrol" ios-CFBundleIdentifier="com.lewismakesapps.Plastic-Patrol" ios-CFBundleVersion="2.0.0" version="2.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Plastic Patrol</name>
<description>
Fighting Plastic Pollution in the UK Waterways.
Expand Down Expand Up @@ -59,5 +59,4 @@
<plugin name="cordova-plugin-splashscreen" spec="^5.0.2" />
<engine name="browser" spec="^5.0.4" />
<engine name="ios" spec="^4.5.5" />
<engine name="android" spec="^7.1.4" />
</widget>
13 changes: 13 additions & 0 deletions cordova-app/fastlane/Appfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# app_identifier("[[APP_IDENTIFIER]]") # The bundle identifier of your app
# apple_id("[[APPLE_ID]]") # Your Apple email address


# For more information about the Appfile, see:
# https://docs.fastlane.tools/advanced/#appfile


app_identifier "com.lewismakesapps.Plastic-Patrol"
package_name "uk.co.plasticpatrol"
apple_id "[email protected]"
team_name "Plastic Patrol CIC"
itc_team_name "Plastic Patrol CIC"
39 changes: 39 additions & 0 deletions cordova-app/fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
#

# Uncomment the line if you want fastlane to automatically update itself
update_fastlane

# default_platform(:ios)

platform :ios do
desc "deploy ios to test flight"
lane :beta do
upload_to_testflight(
ipa: "platforms/ios/build/device/Plastic Patrol.ipa",
distribute_external: false,
skip_waiting_for_build_processing: true,
changelog: ENV["TRAVIS_COMMIT_MESSAGE"]
)
end
end

platform :android do
desc "deploy android to beta"
lane :beta do
upload_to_play_store(
apk: "./platforms/android/app/build/outputs/apk/release/app-release.apk",
track: "beta",
json_key: "GooglePlayAndroidDeveloper.json"
)
end
end
29 changes: 29 additions & 0 deletions cordova-app/fastlane/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
fastlane documentation
================
# Installation

Make sure you have the latest version of the Xcode command line tools installed:

```
xcode-select --install
```

Install _fastlane_ using
```
[sudo] gem install fastlane -NV
```
or alternatively using `brew cask install fastlane`

# Available Actions
## iOS
### ios beta
```
fastlane ios beta
```
Description of what the lane does

----

This README.md is auto-generated and will be re-generated every time [fastlane](https://fastlane.tools) is run.
More information about fastlane can be found on [fastlane.tools](https://fastlane.tools).
The documentation of fastlane can be found on [docs.fastlane.tools](https://docs.fastlane.tools).
212 changes: 1 addition & 211 deletions cordova-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions cordova-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"cordova": {
"platforms": [
"browser",
"ios",
"android"
"ios"
],
"plugins": {
"cordova-plugin-whitelist": {},
Expand All @@ -17,7 +16,6 @@
}
},
"dependencies": {
"cordova-android": "^7.1.4",
"cordova-browser": "^5.0.4",
"cordova-ios": "^4.5.5",
"cordova-plugin-camera": "^4.0.3",
Expand Down
Loading

0 comments on commit 86fbb6f

Please sign in to comment.