-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.example
More file actions
28 lines (24 loc) · 967 Bytes
/
.gitlab-ci.example
File metadata and controls
28 lines (24 loc) · 967 Bytes
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
image: javiersantos/android-ci:latest
stages:
- build
before_script:
- curl -sL https://deb.nodesource.com/setup_10.x | bash #Add Node Repo
- apt-get install -y nodejs #Install NOde JS
- npm install -g react-native-cli #Install React-Native CLI
- npm install #Install npm packages
- react-native link #Link the resources
- export GRADLE_USER_HOME=$(pwd)/.gradle
- chmod +x ./android/gradlew
build:
stage: build
script:
- echo fs.inotify.max_user_watches=524288 | tee -a /etc/sysctl.conf && sysctl -p
- echo $KEYSTORE_FILE | base64 -d > ./android/my.keystore
- cd android && ./gradlew assembleRelease
-Pandroid.injected.signing.store.file=$(pwd)/my.keystore
-Pandroid.injected.signing.store.password=$KEYSTORE_PASSWORD
-Pandroid.injected.signing.key.alias=$KEY_ALIAS
-Pandroid.injected.signing.key.password=$KEY_PASSWORD
artifacts:
paths:
- ./android/app/build/outputs/apk/release/app-release.apk