-
Notifications
You must be signed in to change notification settings - Fork 356
/
appveyor.yml
69 lines (63 loc) · 2.87 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
build: false
platform: 'x86'
clone_folder: C:\projects\gaufrette
branches:
except:
- gh-pages
cache:
- '%LOCALAPPDATA%\Composer\files'
- c:\php -> appveyor.yml
environment:
AWS_KEY:
secure: nMVfvhojgVc9VBlrYXeddaYIQHlVAlupWmxNjXMlsB0=
AWS_SECRET:
secure: MiAf2q7mnqSIZSoChd9v3pwUrXHeAEpZP8Zc0E0qjiOBXPvplzJVtrkWRwTNlQl3
AWS_BUCKET: gaufretteci
RACKSPACE_USER:
secure: aEIZdm+IXe9dGLOnSmgu8A==
RACKSPACE_APIKEY:
secure: CqBlB4EVIM2FMaYxBdplTaQzw8JgKElxYvKYpXUXPHpOdwJcnYy0gk2KdjF4fXDM
RACKSPACE_CONTAINER: gaufretteci
AZURE_ACCOUNT:
secure: s6JCZ8ztVGvVYprceONZOg==
AZURE_KEY:
secure: 6+9kd9n/BO65LI8ZCJJXOwo9v5QmMULKWExHgECe+rnflaw+ZiQ8jFfHwxxjOfUF1qulAyxHQmDj7M3Cfvbe/DAASjk52ngEMvHC6wv2/Eo0cBMQiUlS9vPeUlvkUy1L
AZURE_CONTAINER: gaufretteci
MONGO_URI: "mongodb://127.0.0.1:27017"
MONGO_DBNAME: "gridfs_test"
services:
- mongodb
init:
- SET PATH=C:\Program Files\OpenSSL;c:\php;%PATH%
- SET PHP=1
install:
- IF EXIST c:\php (SET PHP=0) ELSE (mkdir c:\php)
- cd c:\php
- IF %PHP%==1 cinst -y OpenSSL.Light --version 1.1.1
- IF %PHP%==1 curl -fsSL -o php-7.2.12-Win32-VC15-x86.zip https://windows.php.net/downloads/releases/archives/php-7.2.12-Win32-VC15-x86.zip
- IF %PHP%==1 7z x php-7.2.12-Win32-VC15-x86.zip -y >nul
- IF %PHP%==1 del /Q *.zip
- IF %PHP%==1 curl -fsSL -o cacert.pem https://curl.haxx.se/ca/cacert.pem
- IF %PHP%==1 cd ext
- IF %PHP%==1 curl -fsSL -o php_mongodb-1.5.3-7.2-ts-vc15-x86.zip https://windows.php.net/downloads/pecl/releases/mongodb/1.5.3/php_mongodb-1.5.3-7.2-ts-vc15-x86.zip
- IF %PHP%==1 7z x php_mongodb-1.5.3-7.2-ts-vc15-x86.zip php_mongodb.dll -y >nul
- IF %PHP%==1 del /Q *.zip
- IF %PHP%==1 cd ..
- IF %PHP%==1 copy php.ini-production php.ini /Y
- IF %PHP%==1 echo extension_dir=ext >> php.ini
- IF %PHP%==1 echo date.timezone="UTC" >> php.ini
- IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini
- IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
- IF %PHP%==1 echo extension=php_mongodb.dll >> php.ini
- IF %PHP%==1 echo extension=php_pdo_sqlite.dll >> php.ini
- IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini
- IF %PHP%==1 echo extension=php_curl.dll >> php.ini
- IF %PHP%==1 echo extension=php_ftp.dll >> php.ini
- IF %PHP%==1 echo openssl.cafile=c:\php\cacert.pem >> php.ini
- cd C:\projects\gaufrette
- curl -fsSL -o composer.phar https://getcomposer.org/composer.phar
- php composer.phar require --no-update async-aws/simple-s3:^0.1.1 aws/aws-sdk-php:^3.158 rackspace/php-opencloud:^1.9.2 google/apiclient:^1.1.3 doctrine/dbal:^2.3 league/flysystem:^1.0 microsoft/azure-storage-blob:^1.0 phpseclib/phpseclib:^2.0 mongodb/mongodb:^1.1 symfony/event-dispatcher:^4.4
- php composer.phar update --prefer-dist --no-interaction --no-progress --no-suggest --ansi
test_script:
- cd C:\projects\gaufrette
- vendor\bin\phpunit --verbose -c phpunit.xml.dist