Skip to content

Commit

Permalink
fix(build): fix fastlane
Browse files Browse the repository at this point in the history
Signed-off-by: Teclib <[email protected]>
  • Loading branch information
stonebuzz committed Jan 7, 2020
1 parent e7b987f commit d9cbeaa
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 16 deletions.
2 changes: 1 addition & 1 deletion ci/scripts/deploy_alpha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ if [[ $GH_COMMIT_MESSAGE != *"ci(release): generate CHANGELOG.md for version"* &
git checkout . -f
git push origin develop

fastlane android "alpha"
sudo fastlane android "alpha"

fi
2 changes: 1 addition & 1 deletion fastlane/Appfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
json_key_file "ci/gplay.json" # Path to the json secret file - Follow https://github.com/fastlane/supply#setup to get one
package_name "org.flyve.inventory.agent" # e.g. com.krausefx.app
package_name "org.glpi.inventory.agent" # e.g. com.krausefx.app
35 changes: 21 additions & 14 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ platform :android do

before_all do
skip_docs
test
certification
end

desc "Runs all the tests"
lane :test do
gradle(task: "test")
end

desc "Deploy workflow"
Expand All @@ -36,6 +43,14 @@ platform :android do
skip_upload_aab: true
)
end
lane :alpha do |options|
gradle(task: "assembleRelease")
supply(
track: 'alpha',
apk: "app/build/outputs/apk/release/appCertified.apk",
skip_upload_aab: true
)
end
lane :playstore do |options|
supply(
track: 'production',
Expand All @@ -45,20 +60,12 @@ platform :android do
end
end

after_all do |lane|
mailgun(
to: "[email protected]",
success: true,
message: "Fastlane is OK"
)
end
#after_all do |lane|
#UI.error "Something unexpected happened in my_new_action. Attempting to continue."
#end

error do |lane, exception|
mailgun(
to: "[email protected]",
success: true,
message: "`ERROR` Fastlane FAIL"
)
end
#error do |lane, exception|
#UI.error "Something unexpected happened in my_new_action. Attempting to continue."
#end

# how to used it fastlane android beta storepass:'#KEYSTORE_PASSWORD' keypass:'#ALIAS_PASSWORD'

0 comments on commit d9cbeaa

Please sign in to comment.