Skip to content

Commit

Permalink
Fix AppVeyor build
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Sep 1, 2018
1 parent 0724988 commit 9e25ec7
Showing 1 changed file with 22 additions and 17 deletions.
39 changes: 22 additions & 17 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,35 @@
build: false
build: off
shallow_clone: true
platform: x64
clone_folder: c:\projects\ausi-slug-generator
clone_folder: C:\projects\ausi-slug-generator

cache:
- C:\tools\php71 -> appveyor.yml
- C:\projects\ausi-slug-generator\vendor -> composer.lock
- '%LOCALAPPDATA%\Composer\files'

init:
- SET PATH=c:\php;%PATH%
- SET PATH=C:\tools\php71;%PATH%
- SET PHP=1
- SET ANSICON=121x90 (121x90)

install:
- mkdir c:\php && cd c:\php
- appveyor DownloadFile http://windows.php.net/downloads/releases/archives/php-7.1.6-Win32-VC14-x64.zip
- 7z x php-7.1.6-Win32-VC14-x64.zip -y >nul
- del *.zip
- copy php.ini-production php.ini
- echo date.timezone="UTC" >> php.ini
- echo extension_dir=ext >> php.ini
- echo extension=php_intl.dll >> php.ini
- echo extension=php_mbstring.dll >> php.ini
- echo extension=php_openssl.dll >> php.ini
- echo extension=php_curl.dll >> php.ini
- cd c:\projects\ausi-slug-generator
- IF EXIST C:\tools\php71 (SET PHP=0)
- IF %PHP%==1 appveyor-retry cinst -y OpenSSL.Light
- IF %PHP%==1 appveyor-retry cinst -y php --version 7.1.14
- IF %PHP%==1 cd C:\tools\php71
- IF %PHP%==1 copy php.ini-production php.ini
- IF %PHP%==1 echo date.timezone="UTC" >> php.ini
- IF %PHP%==1 echo extension_dir=ext >> php.ini
- IF %PHP%==1 echo extension=php_bz2.dll >> php.ini
- IF %PHP%==1 echo extension=php_curl.dll >> php.ini
- IF %PHP%==1 echo extension=php_intl.dll >> php.ini
- IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini
- IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
- cd C:\projects\ausi-slug-generator
- php -r "readfile('http://getcomposer.org/installer');" | php
- php composer.phar update --no-progress --no-interaction --ansi
- php composer.phar update --no-progress --no-suggest --no-interaction --ansi

test_script:
- cd c:\projects\ausi-slug-generator
- cd C:\projects\ausi-slug-generator
- vendor\bin\phpunit.bat

0 comments on commit 9e25ec7

Please sign in to comment.