Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
808aaef1
Unverified
Commit
808aaef1
authored
May 08, 2018
by
Michael Moravec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AppVeyor: Improve caching and locations for utilities
parent
e1216432
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
15 deletions
+29
-15
.appveyor.yml
.appveyor.yml
+29
-15
No files found.
.appveyor.yml
View file @
808aaef1
...
...
@@ -10,9 +10,9 @@ cache:
-
C:\ProgramData\chocolatey\bin -> .appveyor.yml
-
C:\ProgramData\chocolatey\lib -> .appveyor.yml
-
C:\tools\php -> .appveyor.yml
-
composer.phar
-
ocular.phar
-
cacert.pem
-
C:\tools\cacert -> .appveyor.yml
-
C:\tools\composer -> .appveyor.yml
-
C:\tools\ocular -> .appveyor.yml
-
'
%LOCALAPPDATA%\Composer\files'
#- vendor
...
...
@@ -41,7 +41,7 @@ environment:
coverage
:
yes
init
:
-
SET PATH=C:\Program Files\OpenSSL;c:\tools\php;%PATH%
-
SET PATH=C:\Program Files\OpenSSL;c:\tools\php;
C:\tools\composer;C:\tools\ocular;
%PATH%
-
SET COMPOSER_NO_INTERACTION=1
-
SET ANSICON=121x90 (121x90)
...
...
@@ -67,6 +67,7 @@ install:
Add-Content php.ini "`n extension=php_pdo_sqlite.dll"
Add-Content php.ini "`n extension=php_sqlite3.dll"
Add-Content php.ini "`n extension=php_curl.dll"
Add-Content php.ini "`n curl.cainfo=C:\tools\cacert\bundle.pem"
# Get and install the MSSQL DLL's
$DLLVersion = "5.2.0rc1"
...
...
@@ -90,24 +91,37 @@ install:
Add-Content php.ini "`nzend_extension=php_xdebug.dll"
Add-Content php.ini "`n"
cd c:\projects\dbal
if (!(Test-Path c:\projects\dbal\composer.phar)) {
appveyor-retry appveyor DownloadFile https://getcomposer.org/composer.phar
# download Composer
if (!(Test-Path C:\tools\composer)) {
New-Item -path c:\tools -name composer -itemtype directory
}
if (!(Test-Path c:\tools\composer\composer.phar)) {
appveyor-retry appveyor DownloadFile https://getcomposer.org/composer.phar -Filename C:\tools\composer\composer.phar
Set-Content -path 'C:\tools\composer\composer.bat' -Value ('@php C:\tools\composer\composer.phar %*')
}
if (!(Test-Path c:\projects\dbal\ocular.phar)) {
appveyor-retry appveyor DownloadFile https://github.com/scrutinizer-ci/ocular/releases/download/1.5.2/ocular.phar
# download Scrutinizer's Ocular
if (!(Test-Path C:\tools\ocular)) {
New-Item -path c:\tools -name ocular -itemtype directory
}
if (!(Test-Path c:\tools\ocular\ocular.phar)) {
appveyor-retry appveyor DownloadFile https://github.com/scrutinizer-ci/ocular/releases/download/1.5.2/ocular.phar -Filename C:\tools\ocular\ocular.phar
Set-Content -path 'C:\tools\ocular\ocular.bat' -Value ('@php C:\tools\ocular\ocular.phar %*')
}
if (!(Test-Path c:\projects\dbal\cacert.pem)) {
appveyor-retry appveyor DownloadFile https://curl.haxx.se/ca/cacert.pem
# download CA bundle
if (!(Test-Path C:\tools\cacert)) {
New-Item -path c:\tools\ -name cacert -itemtype directory
}
if (!(Test-Path c:\tools\cacert\bundle.pem)) {
appveyor-retry appveyor DownloadFile https://curl.haxx.se/ca/cacert.pem -Filename C:\tools\cacert\bundle.pem
}
}
# install composer dependencies
-
cd C:\projects\dbal
-
rm composer.lock
-
appveyor-retry
php composer.pha
r self-update
-
appveyor-retry
php composer.pha
r install --no-progress --profile
-
appveyor-retry
compose
r self-update
-
appveyor-retry
compose
r install --no-progress --profile
before_test
:
# Selectively start the services
...
...
@@ -128,7 +142,7 @@ test_script:
-
ps
:
>-
if ($env:coverage -eq "yes") {
vendor\bin\phpunit -c $($env:phpunit_config) --coverage-clover clover.xml
appveyor-retry
php -d curl.cainfo=c:\projects\dbal\cacert.pem ocular.ph
ar code-coverage:upload --format=php-clover clover.xml
appveyor-retry
ocul
ar code-coverage:upload --format=php-clover clover.xml
} else {
vendor\bin\phpunit -c $($env:phpunit_config)
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment