Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AppVeyor improvements #247

Merged
merged 1 commit into from
Dec 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,31 @@
build: false
platform: x86
clone_folder: c:\projects\cocur\slugify
clone_folder: C:\projects\cocur\slugify

cache:
- '%LOCALAPPDATA%\Composer\files'
- '%APPDATA%\Composer'
- '%LOCALAPPDATA%\Composer'
- C:\tools\composer.phar -> .appveyor.yml
- C:\tools\php -> .appveyor.yml

init:
- SET PATH=C:\tools\php;%PATH%

install:
- ps: Set-Service wuauserv -StartupType Manual
- cinst -y php composer
- refreshenv
- cd c:\tools\php73
- IF NOT EXIST C:\tools\php (choco install --yes --allow-empty-checksums php --params '/InstallDir:C:\tools\php')
- 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
- echo extension=php_mbstring.dll >> php.ini
- echo extension=php_curl.dll >> php.ini
- echo memory_limit=3G >> php.ini
- IF NOT EXIST C:\tools\composer.phar (cd C:\tools && appveyor DownloadFile https://getcomposer.org/composer.phar)
- cd %APPVEYOR_BUILD_FOLDER%
- composer install --no-interaction --no-progress
- php C:\tools\composer.phar global show hirak/prestissimo --quiet || php C:\tools\composer.phar global require hirak/prestissimo --no-progress
- php C:\tools\composer.phar update --no-ansi --no-interaction --no-progress --no-suggest --optimize-autoloader --prefer-stable

test_script:
- cd %APPVEYOR_BUILD_FOLDER%
Expand Down