Skip to content

Commit b3975c0

Browse files
author
Slavey Karadzhov
committed
Test Automation on Windows.
Initial work for issue #73.
1 parent cb6cf9d commit b3975c0

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

appveyor.yml

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# appveyor file
2+
# http://www.appveyor.com/docs/appveyor-yml
3+
4+
os: Windows Server 2012 R2
5+
6+
# build version format
7+
version: "{build}-{branch}"
8+
9+
10+
init:
11+
- git config --global core.autocrlf input
12+
13+
# Set a known clone folder
14+
clone_folder: C:\projects\zsclient
15+
16+
matrix:
17+
fast_finish: true
18+
19+
# branches
20+
branches:
21+
only:
22+
- master
23+
24+
skip_tags: true
25+
skip_commits:
26+
message: /\[\s*skip\s+ci\s*\]/ # Ignore messages with [skip ci]
27+
28+
platform: Any CPU
29+
30+
# Install scripts
31+
install:
32+
## Set PHP.
33+
- cinst php
34+
- SET PATH=C:\tools\php\;%PATH%
35+
- cd C:\tools\php
36+
- copy php.ini-production php.ini
37+
- echo date.timezone="Europe/Berlin" >> php.ini
38+
- echo extension_dir=ext >> php.ini
39+
- echo extension=php_openssl.dll >> php.ini
40+
- echo extension=php_curl.dll >> php.ini
41+
- echo output_buffering = Off >> php.ini
42+
- echo default_charset = UTF-8 >> php.ini
43+
- echo mbstring.language = Japanese >> php.ini
44+
- echo mbstring.encoding_translation = On >> php.ini
45+
- echo mbstring.http_input = UTF-8 >> php.ini
46+
- echo mbstring.http_output = pass >> php.ini
47+
- echo mbstring.internal_encoding = UTF-8 >> php.ini
48+
49+
- php -v
50+
- where php
51+
52+
53+
## Set Composer.
54+
- cd C:\projects\zsclient
55+
- php -r "readfile('https://getcomposer.org/installer');" | php
56+
- php composer.phar --version
57+
58+
build_script:
59+
- php composer.phar install --dev --prefer-source
60+
- php vendor/bin/phpunit -c module/Client/tests/phpunit.xml
61+
- php bin/zs-client.phar targetFileLocation
62+
- php bin/build-zpk.php
63+
64+
test: off
65+
deploy: off

0 commit comments

Comments
 (0)