forked from android/android-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.yaml
27 lines (24 loc) · 965 Bytes
/
cloudbuild.yaml
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
steps:
# pull the latest docker image contains bazel + android SDK
- name: gcr.io/cloud-builders/docker
args: ['pull', 'gcr.io/$PROJECT_ID/bazel-android:latest']
# build the docker image, caching from the latest image
- name: gcr.io/cloud-builders/docker
args: [
'build',
'--tag', 'gcr.io/$PROJECT_ID/bazel-android:latest',
'--cache-from', 'gcr.io/$PROJECT_ID/bazel-android:latest',
'.'
]
# build the maven repository using bazel
- name: gcr.io/$PROJECT_ID/bazel-android
args: ['build', '//:axt_m2repository']
# run the robolectric tests
- name: gcr.io/$PROJECT_ID/bazel-android
args: ['test', '...', '--test_tag_filters=robolectric,-gcb_ignore', '--build_tag_filters=robolectric', '--test_output=all']
timeout: '1200s'
# use a 32 vCPU 28.8GB memory machine.
options:
machineType: "N1_HIGHCPU_32"
# push the built docker image to google cloud storage
images: ['gcr.io/$PROJECT_ID/bazel-android:latest']