Security update for Core, with self-updated composer
[yaffs-website] / vendor / consolidation / output-formatters / appveyor.yml
index b596358ccb6ec7b2e4beffcdb3224046868c6a97..3e08fa1c02701e580c0c709ac4e7746d0cf40d70 100644 (file)
@@ -26,7 +26,7 @@ install:
   - SET PATH=C:\Program Files\MySql\MySQL Server 5.7\bin\;%PATH%
   #Install PHP per https://blog.wyrihaximus.net/2016/11/running-php-unit-tests-on-windows-using-appveyor-and-chocolatey/
   - ps: appveyor-retry cinst --ignore-checksums -y php --version ((choco search php --exact --all-versions -r | select-string -pattern $Env:php_ver_target | Select-Object -first 1) -replace '[php|]','')
-  - cd c:\tools\php
+  - cd c:\tools\php70
   - copy php.ini-production php.ini
 
   - echo extension_dir=ext >> php.ini
@@ -43,12 +43,15 @@ install:
   - echo extension=php_pdo_sqlite.dll >> php.ini
   - echo extension=php_pgsql.dll >> php.ini
   - echo extension=php_gd2.dll >> php.ini
-  - SET PATH=C:\tools\php;%PATH%
+  - SET PATH=C:\tools\php70;%PATH%
   #Install Composer
   - cd %APPVEYOR_BUILD_FOLDER%
   #- appveyor DownloadFile https://getcomposer.org/composer.phar
   - php -r "readfile('http://getcomposer.org/installer');" | php
-  #Install dependencies via Composer
+  #Install dependencies via Composer.
+  #Newer versions of the dependencies have whitespace differences that break tests.
+  #Maybe we should fix and do highest/lowest here someday.
+  - copy composer.windows.lock composer.lock
   - php composer.phar -q install --prefer-dist -n
   - SET PATH=%APPVEYOR_BUILD_FOLDER%;%APPVEYOR_BUILD_FOLDER%/vendor/bin;%PATH%
   #Create a sandbox for testing. Don't think we need this.