Skip to content

Commit b06b908

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

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,22 @@ 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 ":"')"
25+
install:
26+
- composer install -n
27+
1728
allow_failures:
1829
- php: 5.4
1930
- php: 7.1
2031
- php: nightly
32+
- os: windows
2133

2234
install:
2335
- ./travis-init.sh

0 commit comments

Comments
 (0)