forked from Blockstream/green_android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
44 lines (42 loc) · 1.05 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
build_tag_release:
image: greenaddress/android@sha256:259e21fd9127b8b4d462e114c777cd60449e27121d708357dd34e3c8bdd9f8e7
artifacts:
name: "green-release-$CI_COMMIT_REF_NAME"
expire_in: 1 hour
when: on_success
paths:
- app/build/outputs/apk/*/release/*.apk
- app/build/outputs/mapping/*/release/mapping.txt
tags:
- ga
script:
- cd $CI_PROJECT_DIR
- ./tools/uncrustify
- git diff
- git diff --quiet
- ./app/fetch_gdk_binaries.sh
- ./gradlew lintProductionRelease
- ./gradlew assembleProductionRelease
build_tag_osx_release:
tags:
- osx
script:
- cd $CI_PROJECT_DIR
- ./tools/uncrustify
- git diff
- git diff --quiet
- ./app/fetch_gdk_binaries.sh
- ./gradlew lintProductionRelease
- ./gradlew assembleProductionRelease
package_release:
tags:
- garelease
stage: deploy
artifacts:
expire_in: 14 days
paths:
- app/build/outputs/*
when: on_success
script: cd $CI_PROJECT_DIR/app/build/outputs/apk && /opt/process_release
dependencies:
- build_tag_release