Skip to content

Commit 1822c4d

Browse files
mhujerondrejmirtes
authored andcommitted
Travis: build also on Windows
1 parent 0621ee1 commit 1822c4d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.travis.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,27 @@ script:
1010
- vendor/bin/phing
1111
after_script:
1212
- php vendor/bin/coveralls -v
13+
14+
jobs:
15+
include:
16+
- stage: test
17+
os: windows
18+
dist: 1803-containers
19+
language: sh # No PHP currently
20+
env: PHP_VERSION=7.3.12
21+
install:
22+
- choco install php --version=${PHP_VERSION} --package-parameters="/InstallDir:c:\tools\php"
23+
- choco install composer --ia "/DEV=C:\tools\php"
24+
- cp 'C:\tools\php\php.ini-production' 'C:\tools\php\php.ini'
25+
- echo 'memory_limit=1G' >> 'C:\tools\php\php.ini'
26+
- echo 'date.timezone="UTC"' >> 'C:\tools\php\php.ini'
27+
- echo 'extension_dir=ext' >> 'C:\tools\php\php.ini'
28+
- echo 'extension=php_mbstring.dll' >> 'C:\tools\php\php.ini'
29+
- echo 'extension=php_openssl.dll' >> 'C:\tools\php\php.ini'
30+
- echo 'extension=php_soap.dll' >> 'C:\tools\php\php.ini'
31+
- echo 'extension=php_mysqli.dll' >> 'C:\tools\php\php.ini'
32+
- echo 'extension=php_intl.dll' >> 'C:\tools\php\php.ini'
33+
- export PATH=/c/tools/php:$PATH
34+
script:
35+
- vendor/bin/phing tests
36+
- vendor/bin/phing phpstan

0 commit comments

Comments
 (0)