mirror of
https://github.com/google/nomulus.git
synced 2025-04-29 19:47:51 +02:00
There has been a case where the CI was broken on Friday and no one noticied or fixed it and a RC build was built with broken tests. The tests were disabled due to unknown test failures that have since been fixed. Also update the machine type used by GCB to be more powerful. This is necessary for the tests to past because N1_HIGHCPU_8 is RAM constraint and the tests crashes. I updated all jobs to use the new type which hopefully will make the build faster as well. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/google/nomulus/1130) <!-- Reviewable:end -->
38 lines
1.7 KiB
YAML
38 lines
1.7 KiB
YAML
# To run the build locally, install cloud-build-local first.
|
|
# See: https://cloud.google.com/cloud-build/docs/build-debug-locally
|
|
# In the root of a nomulus source tree, run:
|
|
# cloud-build-local --config=cloudbuild-dev-resource.yaml --dryrun=false ..
|
|
#
|
|
# This will compile javadoc for the FOSS version of the code base and replace
|
|
# the content at gs://${PROJECT_ID}-javadoc with the it. The compiled javadoc
|
|
# can then be accesssed at https://storage.googleapis.com/${PROJECT_ID}-javadoc
|
|
#
|
|
# It will also upload all ER diagrams under db/src/main/resource/sql/er_diagram
|
|
# to gs://${PROJECT_ID}-er-diagram. The ER diagrams can then be accesssed
|
|
# at https://storage.googleapis.com/${PROJECT_ID}-er-diagram
|
|
#
|
|
# To trigger a build automatically, follow the instructions below and add a trigger:
|
|
# https://cloud.google.com/cloud-build/docs/running-builds/automate-builds
|
|
steps:
|
|
# Compile javadoc
|
|
- name: 'gcr.io/${PROJECT_ID}/builder'
|
|
entrypoint: /bin/bash
|
|
args: ['./gradlew', ':javadoc']
|
|
# Upload the files to GCS
|
|
# We don't use GCB's built-in artifacts uploader because we want to delete
|
|
# the existing files in the bucket first, and we want to parallelize the
|
|
# uploading process.
|
|
- name: 'gcr.io/${PROJECT_ID}/builder'
|
|
entrypoint: /bin/bash
|
|
args: ['gsutil', '-m', 'rsync', '-d', '-r', 'build/docs/javadoc', 'gs://${PROJECT_ID}-javadoc']
|
|
# Upload the files to GCS
|
|
# We don't use GCB's built-in artifacts uploader because we want to delete
|
|
# the existing files in the bucket first, and we want to parallelize the
|
|
# uploading process.
|
|
- name: 'gcr.io/${PROJECT_ID}/builder'
|
|
entrypoint: /bin/bash
|
|
args: ['gsutil', '-m', 'rsync', '-d', '-r', 'db/src/main/resources/sql/er_diagram',
|
|
'gs://${PROJECT_ID}-er-diagram']
|
|
timeout: 3600s
|
|
options:
|
|
machineType: 'E2_HIGHCPU_32'
|