-
Notifications
You must be signed in to change notification settings - Fork 23
/
.appveyor.yml
45 lines (39 loc) · 1.54 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
build: false
version: dev-{build}
shallow_clone: false
clone_folder: C:\projects\secureheaders
environment:
matrix:
- php_ver: 7.1.6
- php_ver: 7.0.20
- php_ver: 5.6.30
- php_ver: 5.5.38
- php_ver: 5.4.45
cache:
- '%APPDATA%\Composer'
- '%LOCALAPPDATA%\Composer'
- C:\tools\php -> .appveyor.yml
- C:\tools\composer.phar -> .appveyor.yml
init:
- SET PATH=C:\tools\php;%PATH%
install:
- ps: Set-Service wuauserv -StartupType Manual
- IF NOT EXIST C:\tools\php (choco install --yes --allow-empty-checksums php --version %php_ver% --params '/InstallDir:C:\tools\php')
- cd C:\tools\php
- copy php.ini-production php.ini
- echo date.timezone="UTC" >> php.ini
- echo memory_limit=512M >> php.ini
- echo extension_dir=ext >> php.ini
- echo extension=php_curl.dll >> php.ini
- echo extension=php_openssl.dll >> php.ini
- echo extension=php_mbstring.dll >> php.ini
- echo extension=php_fileinfo.dll >> php.ini
- IF NOT EXIST C:\tools\composer.phar (cd C:\tools && appveyor DownloadFile https://getcomposer.org/composer.phar)
before_test:
- cd C:\projects\secureheaders
- php C:\tools\composer.phar config repositories.0 --unset --no-interaction
- php C:\tools\composer.phar remove friendsofphp/php-cs-fixer --dev --no-interaction --no-progress --no-ansi
- php C:\tools\composer.phar update --no-interaction --no-progress --optimize-autoloader --prefer-stable --no-ansi
test_script:
- cd C:\projects\secureheaders
- vendor\bin\phpunit --verbose