Skip to content

Commit

Permalink
Adding kokoro config for windows (#1339)
Browse files Browse the repository at this point in the history
* Adding kokoro config for php72 test on windows

* Get the right job name

* Stop using HOME because it's different when running the test

* Change directory before running the test

* Add windows configs for php versions

* Run self-update on composer
  • Loading branch information
Takashi Matsuo committed Oct 12, 2018
1 parent 3b8eaba commit 7f9d770
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 0 deletions.
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%

0 comments on commit 7f9d770

Please sign in to comment.