setup windows builds to track google-cloud-ruby (#209)

This commit is contained in:
Graham Paye 2019-04-04 13:20:58 -07:00 committed by GitHub
parent 9ca53d24ff
commit b4feeb6188
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 53 additions and 7 deletions

View File

@ -5,4 +5,12 @@ REM * Merges run all non-acceptance tests for every library, and acceptance tes
REM * Nightlies run all acceptance tests for every library. REM * Nightlies run all acceptance tests for every library.
REM Currently only runs tests on 2.5.1 REM Currently only runs tests on 2.5.1
"C:\Program Files\Git\bin\bash.exe" github/google-auth-library-ruby/.kokoro/windows.sh SET url="https://raw.githubusercontent.com/googleapis/google-cloud-ruby/master/.kokoro/build.bat"
SET "download=powershell -C Invoke-WebRequest -Uri %url% -OutFile master-build.bat"
SET EXIT_STATUS=1
%download% && master-build.bat && SET EXIT_STATUS=0
EXIT %EXIT_STATUS%

View File

@ -1,3 +1,19 @@
# Format: //devtools/kokoro/config/proto/build.proto # Format: //devtools/kokoro/config/proto/build.proto
build_file: "google-auth-library-ruby/.kokoro/build.bat" build_file: "google-auth-library-ruby/.kokoro/trampoline.bat"
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/windows"
}
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/google-auth-library-ruby/.kokoro/build.bat"
}
env_vars: {
key: "REPO_DIR"
value: "google-auth-library-ruby"
}

View File

@ -1,3 +1,19 @@
# Format: //devtools/kokoro/config/proto/build.proto # Format: //devtools/kokoro/config/proto/build.proto
build_file: "google-auth-library-ruby/.kokoro/build.bat" build_file: "google-auth-library-ruby/.kokoro/trampoline.bat"
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/windows"
}
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/google-auth-library-ruby/.kokoro/build.bat"
}
env_vars: {
key: "REPO_DIR"
value: "google-auth-library-ruby"
}

10
.kokoro/trampoline.bat Normal file
View File

@ -0,0 +1,10 @@
SET url="https://raw.githubusercontent.com/googleapis/google-cloud-ruby/master/.kokoro/trampoline.bat"
SET "download=powershell -C Invoke-WebRequest -Uri %url% -OutFile master-trampoline.bat"
SET EXIT_STATUS=1
%download% && master-trampoline.bat && SET EXIT_STATUS=0
EXIT %EXIT_STATUS%

View File

@ -1,4 +0,0 @@
#!/bin/bash
script_url="https://raw.githubusercontent.com/googleapis/google-cloud-ruby/master/.kokoro/windows.sh"
curl -o master-windows.sh $script_url && source master-windows.sh