Skip to content

Commit 329f1dd

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

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

appveyor.yml

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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*ci\s+skip\s*\]/ # Ignore messages with [ci skip]
27+
message: /\[\s*skip\s+ci\s*\]/ # or with [skip ci]
28+
29+
platform: Any CPU
30+
31+
# Install scripts
32+
install:
33+
## Set PHP.
34+
- cinst php
35+
- SET PATH=C:\tools\php\;%PATH%
36+
- cd C:\tools\php
37+
- copy php.ini-production php.ini
38+
- echo date.timezone="Europe/Berlin" >> php.ini
39+
- echo extension_dir=ext >> php.ini
40+
- echo extension=php_phar.dll >> php.ini
41+
- echo extension=php_curl.dll >> php.ini
42+
- echo output_buffering = Off >> php.ini
43+
- echo default_charset = UTF-8 >> php.ini
44+
- echo mbstring.language = Japanese >> php.ini
45+
- echo mbstring.encoding_translation = On >> php.ini
46+
- echo mbstring.http_input = UTF-8 >> php.ini
47+
- echo mbstring.http_output = pass >> php.ini
48+
- echo mbstring.internal_encoding = UTF-8 >> php.ini
49+
50+
- php -v
51+
- where php
52+
53+
54+
## Set Composer.
55+
- cd C:\projects\zsclient
56+
- php -r "readfile('https://getcomposer.org/installer');" | php
57+
- php composer.phar --version
58+
59+
build_script:
60+
- php composer.phar install --dev --prefer-source
61+
- php vendor/bin/phpunit -c module/Client/tests/phpunit.xml
62+
- php bin/zs-client.phar targetFileLocation
63+
- php bin/build-zpk.php
64+
65+
test: off
66+
deploy: off

0 commit comments

Comments
 (0)