forked from KnpLabs/Gaufrette
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
68 lines (62 loc) · 2.5 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
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
- IF %PHP%==1 appveyor DownloadFile http://windows.php.net/downloads/releases/archives/php-5.6.17-nts-Win32-VC11-x86.zip
- IF %PHP%==1 7z x php-5.6.17-nts-Win32-VC11-x86.zip -y >nul
- IF %PHP%==1 del /Q *.zip
- IF %PHP%==1 appveyor DownloadFile http://curl.haxx.se/ca/cacert.pem
- IF %PHP%==1 cd ext
- IF %PHP%==1 appveyor DownloadFile http://windows.php.net/downloads/pecl/releases/mongodb/1.2.9/php_mongodb-1.2.9-5.6-nts-vc11-x86.zip
- IF %PHP%==1 7z x php_mongodb-1.2.9-5.6-nts-vc11-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 openssl.cafile=c:\php\cacert.pem >> php.ini
- cd C:\projects\gaufrette
- appveyor DownloadFile https://getcomposer.org/composer.phar
- php composer.phar update --prefer-dist --no-interaction --no-progress --no-suggest --ansi
test_script:
- cd C:\projects\gaufrette
- vendor\bin\phpspec run -fpretty --verbose
- vendor\bin\phpunit --verbose -c phpunit.xml.dist