Last active
March 14, 2017 17:45
-
-
Save mscheel/4b69ace357770ab8de645f0037c9723a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Customise this file, documentation can be found here: | |
# https://github.com/fastlane/fastlane/tree/master/fastlane/docs | |
# All available actions: https://docs.fastlane.tools/actions | |
# can also be listed using the `fastlane actions` command | |
# Change the syntax highlighting to Ruby | |
# All lines starting with a # are ignored when running `fastlane` | |
# If you want to automatically update fastlane if a new version is available: | |
update_fastlane | |
# This is the minimum version number required. | |
# Update this, if you use features of a newer version | |
fastlane_version "2.19.3" | |
default_platform :android | |
hockeyApiToken = ENV["HOCKEY_API_TOKEN"] | |
branch = ENV["GIT_BRANCH"] | |
platform :android do | |
before_all do | |
# nothing yet | |
end | |
# desc "Deploy a new version to the Google Play" | |
# lane :deploy do | |
# gradle(task: "assembleRelease") | |
# supply | |
# end | |
desc "Deploy a new version to Hockey" | |
lane :deploy do | |
# gradle(task: "assembleRelease") | |
teams = nil | |
if branch.downcase.include? "inferno" | |
teams = "91799" | |
elsif branch.downcase.include? "sunshine" | |
teams = "91808" | |
end | |
hockey( | |
notes: branch, | |
notify: '1', # Notify all testers that can install this app | |
status: '2', # Make available for download | |
#release_type: '0', # 'beta' release type, | |
api_token: hockeyApiToken, | |
teams: teams, | |
apk: "app/build/outputs/apk/*-release.apk" | |
) | |
end | |
# You can define as many lanes as you want | |
after_all do |lane| | |
# This block is called, only if the executed lane was successful | |
# slack( | |
# message: "Successfully deployed new App Update." | |
# ) | |
end | |
error do |lane, exception| | |
# slack( | |
# message: exception.message, | |
# success: false | |
# ) | |
end | |
end | |
# More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md | |
# All available actions: https://docs.fastlane.tools/actions | |
# fastlane reports which actions are used | |
# No personal data is sent or shared. Learn more at https://github.com/fastlane/enhancer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment