forked from hsjoberg/blixt-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
34 lines (29 loc) · 901 Bytes
/
.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
image: reactnativecommunity/react-native-android
cache:
paths:
- node_modules/
before_script:
- npm i -g envinfo && envinfo
- yarn install
stages:
- test
- build
test:
stage: test
script:
- CI=true yarn test
build:
stage: build
script:
- yarn install
- echo "$ANDROID_KEYSTORE" | base64 -d > android/app/gitlab-ci-android.keystore
- echo "MYAPP_APP_ID=com.blixtwallet" >> android/gradle.properties
- echo "MYAPP_RELEASE_STORE_FILE=gitlab-ci-android.keystore" >> android/gradle.properties
- echo "MYAPP_RELEASE_KEY_ALIAS=gitlab-ci-key" >> android/gradle.properties
- echo "MYAPP_RELEASE_STORE_PASSWORD=Spring15" >> android/gradle.properties
- echo "MYAPP_RELEASE_KEY_PASSWORD=Spring15" >> android/gradle.properties
- cd android && chmod +x gradlew
- ./gradlew assembleRelease
artifacts:
paths:
- android/app/build/outputs/