Skip to content

Commit

Permalink
feat(ci): build berty-app for android on buildkite
Browse files Browse the repository at this point in the history
  • Loading branch information
jembijemb committed Jan 3, 2020
1 parent f4d57e2 commit 45bcfc7
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,39 @@ steps:
- cd ..
- codecov -f ./go/coverage.txt

- label: android-build
plugins:
- n0izn0iz/docker#v3.5.4:
image: bitriseio/android-ndk:v2019_12_28-08_15-b1793
propagate-uid-gid: true
workdir: /home/buildkite-agent/go/src/berty.tech/berty
environment:
[
"GO111MODULE=on",
"GOPATH=/home/buildkite-agent/go",
"HOME=/home/buildkite-agent"
]
volumes: ["~:/home/buildkite-agent"]
agents:
queue: "bigcores"
commands:
- set -x
- cd js
- make deps.android
- cd packages/berty-app
- npx jetify
- cd android
- ./gradlew bundleRelease
- find . -name '*.aab'
- "[ -f ~/bundletool-all-0.12.0.jar ] || wget -O ~/bundletool-all-0.12.0.jar https://github.com/google/bundletool/releases/download/0.12.0/bundletool-all-0.12.0.jar"
- "java -jar ~/bundletool-all-0.12.0.jar build-apks --bundle=./app/build/outputs/bundle/release/app.aab --output=./app.apks --mode=universal"
- unzip ./app.apks
- find . -name '*.apk'
artifact_paths:
- "js/packages/berty-app/android/universal.apk"
- "js/packages/berty-app/android/toc.pb"
- "js/packages/berty-app/android/app/build/outputs/bundle/release/app.aab"

- label: bazel-go
plugins:
- n0izn0iz/docker#v3.5.4:
Expand Down
1 change: 1 addition & 0 deletions js/packages/berty-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@types/react-native": "^0.60.16",
"babel-jest": "^24.9.0",
"caser": "^0.1.1",
"jetifier": "^1.6.5",
"metro-react-native-babel-preset": "^0.56.0",
"react-native-typescript-transformer": "^1.2.13",
"react-test-renderer": "^16.9.0",
Expand Down
5 changes: 5 additions & 0 deletions js/yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 45bcfc7

Please sign in to comment.