forked from mysteriumnetwork/mysterium-vpn-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
44 lines (40 loc) · 1.08 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
stages:
- environment
- build
- test
- release
buildDebug:
image: mysteriumnetwork/mobile-ci:1.0.0
stage: build
except: [tags]
tags: [docker]
except:
changes:
- "./fastlane/android_version_code"
script:
- bundle exec fastlane buildDebug
testDebug:
image: mysteriumnetwork/mobile-ci:1.0.0
stage: test
except: [tags]
tags: [docker]
except:
changes:
- "./fastlane/android_version_code"
dependencies:
- buildDebug
script:
- bundle exec fastlane test
publishInternal:
image: mysteriumnetwork/mobile-ci:1.0.0
stage: release
only: [tags]
tags: [docker]
before_script:
- echo "$FASTLANE_ANDROID_SIGNING_FILE_VALUE" | base64 --decode > "$FASTLANE_ANDROID_SIGNING_FILE_PATH"
- echo "$FASTLANE_ANDROID_SECRET_JSON_VALUE" | base64 --decode > "$FASTLANE_ANDROID_SECRET_JSON_PATH"
- echo "$GOOGLE_SERVICES_VALUE" | base64 --decode > "$GOOGLE_SERVICES_PATH"
after_script:
- rm -f $GOOGLE_SERVICES_PATH $FASTLANE_ANDROID_SIGNING_FILE_PATH $FASTLANE_ANDROID_SECRET_JSON_PATH
script:
- bundle exec fastlane internal