forked from quasarstream/shaka-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
49 lines (38 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
46
47
48
49
build: false
platform:
- x64
clone_folder: c:\projects\project-code
cache:
- c:\ProgramData\chocolatey\bin -> .appveyor.yml
- c:\ProgramData\chocolatey\lib -> .appveyor.yml
- c:\ProgramData\ComposerSetup -> .appveyor.yml
- c:\tools\php -> .appveyor.yml
environment:
global:
COMPOSER_NO_INTERACTION: 1
ANSICON: 121x90 (121x90) # Console colors
shaka_packager_download: https://github.com/google/shaka-packager/releases/download/v2.4.2/packager-win.exe
init:
- ps: $env:PATH = 'c:\tools\php;c:\ProgramData\ComposerSetup\bin;' + $env:PATH
install:
- ps: Set-Service wuauserv -StartupType Manual # Chocolatey will try to install Windows updates when installing PHP.
- ps: cinst php --params '""/InstallDir:C:\tools\php""' --ignore-checksums
- ps: Start-FileDownload $env:shaka_packager_download
- ren packager-win.exe packager.exe
- mkdir shaka
- move packager.exe shaka
- PATH=%PATH%;%cd%\shaka
- cd c:\tools\php
- copy php.ini-production php.ini /Y
- echo date.timezone="UTC" >> php.ini
- echo extension_dir=ext >> php.ini
- echo extension=php_openssl.dll >> php.ini # Needed to install Composer
- echo extension=php_mbstring.dll >> php.ini # Needed for PHPunit
- echo extension=php_fileinfo.dll >> php.ini
- appveyor-retry cinst --no-progress -y composer
- cd c:\projects\project-code
- appveyor-retry composer update --no-interaction --no-progress --no-suggest --optimize-autoloader --prefer-stable --prefer-dist
test_script:
- cd c:\projects\project-code
- packager --version
- vendor\bin\phpunit tests