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