简体   繁体   English

Android + Gitlab CI

[英]Android + Gitlab CI

I tryed setting gitlab ci for my android project.我尝试为我的 android 项目设置 gitlab ci。 I want used sdk from local folder without loading from official server.我想从本地文件夹使用 sdk,而不从官方服务器加载。 I created runner my work station.我创建了跑步者我的工作站。 Tell me please how write .gitlab-ci.yml for this?请告诉我如何为此编写 .gitlab-ci.yml ?

In GitLab CI/CD, you gitlab-ci.yml should contain stages .在 GitLab CI/CD 中,您 gitlab-ci.yml 应该包含stage Each stage should include one or more jobs, notice that these jobs in the same stage running in parallel.每个阶段应该包括一个或多个作业,注意这些作业在同一阶段并行运行。

For example, you may have 3 stages :例如,您可能有3 个阶段

  1. Build建造
  2. Run unit tests运行单元测试
  3. Deploy部署

In your gitlab-ci.yml includes some commands to run this job within these stages.在您的 gitlab-ci.yml 中包含一些在这些阶段运行此作业的命令。

I wrote an article for applying GitLab CI/CD in android project, I hope it could help you.我写了一篇关于在an​​droid项目中应用GitLab CI/CD的文章,希望对你有帮助。

check part 1检查第 1 部分

check part 2检查第 2 部分

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM