生成的Android建立与Gitlab CI [英] Generating Android build with Gitlab CI
问题描述
我刚安装Gitlab作为存储库为我的项目,我想利用自己的Gitlab CI系统的优势。我想自动生成配送和调试的.apk后,每一次提交。我GOOGLE了,但我没有发现任何东西作为一个教程或类似的情况。如果有人能指导我,在某种程度上,这将是巨大的。
I just installed Gitlab as repository for my projects and I want to take advantages of their Gitlab CI system. I want to automatically generate a distribution and debug Apk after each commit. I googled but I didn't find anything as a tutorial or similar cases. If someone could guide me in some way, it would be great.
谢谢!
推荐答案
您可以添加一个构建步骤如下您GitLab CI项目。
You can add a build step to your GitLab CI project as below.
gradle assemble
这将生成调试和发布APK的的提交推了推:
This will generate debug and release APK's of the commit pushed at:
/build/outputs/apk/
您便可以编写一个脚本来归档生成APK的,但是你需要。
You could then write a script to archive the generated APK's however you require.
这篇关于生成的Android建立与Gitlab CI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!