Skip to content

Commit 698f565

Browse files
author
Abhishek Singh
committed
Added CI job to build APK
1 parent 41f19d6 commit 698f565

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.gitlab-ci.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
stages:
2+
- build
3+
4+
build_apk:
5+
stage: build
6+
image: espressif/idf:latest
7+
tags:
8+
- build
9+
10+
variables:
11+
deployment: "production"
12+
13+
rules:
14+
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
15+
16+
script:
17+
- rm -rf /tmp/esp-rainmaker-jenkins-ci
18+
- git clone https://$CI_GITLAB_USERNAME_APP_FRAMEWORKS:$CI_GITLAB_PASSWORD_APP_FRAMEWORKS@gitlab.espressif.cn:6688/app-frameworks/esp-rainmaker-jenkins-ci.git
19+
- cd esp-rainmaker-jenkins-ci
20+
- pip3 install -r requirements.txt
21+
- python3 key_update.py android-rm-app.params --key branch --value $CI_COMMIT_REF_NAME
22+
- python3 key_update.py android-rm-app.params --key deployment --value $deployment
23+
- python3 -u git_jenkins_ci_gateway_cli.py android-rm-app --gateway_branch test/android-rm-app/$CI_COMMIT_REF_NAME
24+

0 commit comments

Comments
 (0)