Skip to content

Commit 871cf7d

Browse files
committed
Run tests on Windows via Travis CI
Inspired by reactphp/child-process#71
1 parent 68b50a5 commit 871cf7d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,19 @@ php:
1414
- nightly
1515

1616
matrix:
17+
include:
18+
- name: "Windows"
19+
os: windows
20+
language: shell # no built-in php support
21+
before_install:
22+
- choco install php
23+
- choco install composer
24+
- export PATH="$(powershell -Command '("Process", "Machine" | % { [Environment]::GetEnvironmentVariable("PATH", $_) -Split ";" -Replace "\\$", "" } | Select -Unique | % { cygpath $_ }) -Join ":"')"
1725
allow_failures:
1826
- php: 5.4
1927
- php: 7.1
2028
- php: nightly
29+
- os: windows
2130

2231
install:
2332
- ./travis-init.sh

0 commit comments

Comments
 (0)