-
-
Notifications
You must be signed in to change notification settings - Fork 74
/
appveyor.yml
44 lines (42 loc) · 1.49 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
build: false
shallow_clone: false
platform: 'x86'
clone_folder: C:\projects\utf8
branches:
except:
- gh-pages
install:
- ps: Set-Service wuauserv -StartupType Manual
- cinst -y curl
- cinst -y OpenSSL.Light
- SET PATH=C:\Program Files\OpenSSL;%PATH%
- cinst -y php --version "7.0.16"
- cd C:\tools\php70\ext
- curl -O https://xdebug.org/files/php_xdebug-2.4.1-7.0-vc14-nts-x86_64.dll
- cd C:\tools\php70
- copy php.ini-production php.ini
- echo date.timezone="UTC" >> php.ini
- echo extension_dir=ext >> php.ini
- echo extension=php_openssl.dll >> php.ini
- echo extension=php_curl.dll >> php.ini
- echo extension=php_mbstring.dll >> php.ini
- echo extension=php_fileinfo.dll >> php.ini
- echo zend_extension_ts=php_xdebug-2.4.1-7.0-vc14-nts-x86_64.dll >> php.ini
- SET PATH=C:\tools\php70;%PATH%
- cd C:\projects\utf8
- mkdir build\logs
- rm -rf vendor
- php -r "readfile('http://getcomposer.org/installer');" | php
- curl -O https://scrutinizer-ci.com/ocular.phar
- php composer.phar self-update
- php composer.phar clearcache
- php composer.phar config -g github-oauth.github.com %GITHUB_TOKEN%
- php composer.phar require php-coveralls/php-coveralls
- php composer.phar install --prefer-dist --no-interaction
- php composer.phar dump-autoload -o
test_script:
- cd C:\projects\utf8
- php.exe --version
- dir
- php.exe vendor\phpunit\phpunit\phpunit -c phpunit.xml
- php.exe ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml