Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding kokoro config for windows #1339

Merged
merged 6 commits into from Oct 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions .kokoro/presubmit/windows/common.cfg
@@ -0,0 +1,9 @@
# Format: //devtools/kokoro/config/proto/build.proto

build_file: "google-cloud-php/.kokoro/presubmit/windows/test.bat"

action {
define_artifacts {
regex: "**/*sponge_log.xml"
}
}
3 changes: 3 additions & 0 deletions .kokoro/presubmit/windows/php56.cfg
@@ -0,0 +1,3 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Intentionally empty
3 changes: 3 additions & 0 deletions .kokoro/presubmit/windows/php70.cfg
@@ -0,0 +1,3 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Intentionally empty
3 changes: 3 additions & 0 deletions .kokoro/presubmit/windows/php71.cfg
@@ -0,0 +1,3 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Intentionally empty
3 changes: 3 additions & 0 deletions .kokoro/presubmit/windows/php72.cfg
@@ -0,0 +1,3 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Intentionally empty
3 changes: 3 additions & 0 deletions .kokoro/presubmit/windows/php73.cfg
@@ -0,0 +1,3 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Intentionally empty
11 changes: 11 additions & 0 deletions .kokoro/presubmit/windows/test.bat
@@ -0,0 +1,11 @@
SET SHORT_JOB_NAME=%KOKORO_JOB_NAME:~-5%

RENAME C:\Users\kbuilder\software\%SHORT_JOB_NAME% php

CD github/google-cloud-php
MKDIR %SHORT_JOB_NAME%\unit
CALL php C:\Users\kbuilder\bin\composer self-update
CALL php C:\Users\kbuilder\bin\composer update
CALL vendor/bin/phpunit --log-junit %SHORT_JOB_NAME%\unit\sponge_log.xml

RENAME C:\Users\kbuilder\software\php %SHORT_JOB_NAME%