forked from keybase/client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
57 lines (49 loc) · 2.08 KB
/
config.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
45
46
47
48
49
50
51
52
53
54
55
56
57
version: 2
jobs:
build:
working_directory: ~/go-path/src/github.com/keybase/client
parallelism: 1
docker:
- image: keybaseprivate/circleci-client@sha256:db626a8307a0daa7ab9d7f124bc0e3c2ca29046bd5218974f5f817fb00544149
steps:
##
## Build.
##
- checkout
# Install JS dependencies.
- run:
working_directory: shared
command: yarn install --pure-lockfile --ignore-engines --network-concurrency 1
- run:
working_directory: shared
command: yarn global add react-native-cli npm
- run:
working_directory: shared
command: yarn run rn-gobuild-android
- run:
working_directory: shared
command: yarn jetify
- run: ls -la $GOPATH/src/github.com/keybase/client/shared/android/keybaselib/keybaselib.aar
# Build a debug version of the app
# Bundle JS separately because doing it in the gradle build is buggy
- run: mkdir -p shared/android/app/build/intermediates/{assets,res/merged}/releaseUnsigned
- run:
working_directory: shared
environment:
REACT_NATIVE_MAX_WORKERS: 1
command: yarn run react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/build/intermediates/assets/releaseUnsigned/index.android.bundle --assets-dest android/app/build/intermediates/res/merged/releaseUnsigned
# Build app.
#
# If the below fails with e.g. 'License for package Android SDK
# Build-Tools 27.0.3 not accepted.', that probably means that the
# CircleCI docker needs to be rebuilt. As a short term hack, we could
# do also append to the license file here.
- run:
working_directory: shared/android
environment:
TERM: dumb
# Limit memory usage of gradle
_JAVA_OPTIONS: -Xms512m -Xmx2048m
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"
command: ./gradlew --no-daemon --stacktrace assembleReleaseUnsigned -x bundleReleaseUnsignedJsAndAssets
# TODO: Run device tests (see old versions of this file).