mirror of
https://github.com/google/nomulus.git
synced 2025-08-04 00:42:12 +02:00
Enable build report upload on travis
Note that this also requires setting the CREDZ environment variable to the contents of the service account credentials file (wrapped in single quotes for shell command protection) ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=234993149
This commit is contained in:
parent
4255af345f
commit
828d09c6e2
1 changed files with 16 additions and 1 deletions
17
.travis.yml
17
.travis.yml
|
@ -11,6 +11,19 @@
|
|||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# Collecting report files from a travis build to GCS requires setting the
|
||||
# "CREDZ" and "REPORT_GCS_BUCKET" environment variables in your travis
|
||||
# repository.
|
||||
#
|
||||
# The report bucket id should just be the bucket id without any scheme or path
|
||||
# (e.g. "my-bucket-name", not "gcs://my-bucket-name"). You'll want to select
|
||||
# "Display value in build log", otherwise travis will hide the bucket name in
|
||||
# the URL that is displayed.
|
||||
#
|
||||
# The CREDZ variable should be the contents of a json credentials file for
|
||||
# a service account with write access to the bucket, escaped for bash shell
|
||||
# usage (usually just wrapping it in single quotes should suffice).
|
||||
|
||||
language: java
|
||||
install: true
|
||||
|
@ -41,4 +54,6 @@ env:
|
|||
# directory.
|
||||
# The "travis_wait 45" lets our build spend up to 45 minutes without writing
|
||||
# output, instead of the default 10.
|
||||
script: cd gradle && chmod 755 ./gradlew && travis_wait 45 ./gradlew build
|
||||
# See notes on the CREDZ and REPORT_GCS_BUCKET environment variable in the
|
||||
# comments at the top of the file.
|
||||
script: cd gradle && echo "$CREDZ" >credz.json && chmod 755 ./gradlew && travis_wait 45 ./gradlew build -P gcsBucket="$REPORT_GCS_BUCKET" -P gcsCredentialsFile=credz.json -P gcsMultithreadedUpload=yes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue