forked from EC-CUBE/ec-cube2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
73 lines (63 loc) · 2.23 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
70
71
72
73
# appveyor file
# http://www.appveyor.com/docs/appveyor-yml
# Set build version format here instead of in the admin panel.
version: 2.13-dev-{build}
cache:
- '%LOCALAPPDATA%\Composer\files'
# Fix line endings in Windows. (runs before repo cloning)
init:
- git config --global core.autocrlf input
environment:
global:
USER: "postgres"
DBNAME: "myapp_test"
DBPASS: "Password12!"
DBUSER: "postgres"
BASE_DIR: "C:/projects/ec-cube"
matrix:
- db: postgresql
provider: postgresql
services:
- iis
- postgresql93
# Install scripts. (runs after repo cloning)
install:
# Set MySQL.
#- cp tests/my.cnf c:\
#- SET PATH=C:\Program Files\MySql\MySQL Server 5.7\bin\;%PATH%
# Set postgresql.
- SET PGUSER=postgres
- SET PGPASSWORD=Password12!
- PATH=C:\Program Files\PostgreSQL\9.3\bin\;%PATH%
# Set bash.
#- cinst mingw-get
#- set PATH=%PATH%;C:\MinGW\msys\1.0\bin;C:\MinGW\bin
#- mingw-get install mingw-developer-toolkit
## Set PHP.
- cinst php -version 5.6.17
- SET PATH=C:\tools\php\;%PATH%
- copy C:\tools\php\php.ini-production C:\tools\php\php.ini
- echo date.timezone="Asia/Tokyo" >> C:\tools\php\php.ini
- echo extension_dir=ext >> C:\tools\php\php.ini
- echo extension=php_openssl.dll >> C:\tools\php\php.ini
- echo extension=php_gd2.dll >> C:\tools\php\php.ini
- echo extension=php_mbstring.dll >> C:\tools\php\php.ini
- echo extension=php_mysql.dll >> C:\tools\php\php.ini
- echo extension=php_pgsql.dll >> C:\tools\php\php.ini
- echo extension=php_curl.dll >> C:\tools\php\php.ini
- echo output_buffering = Off >> C:\tools\php\php.ini
- echo default_charset = UTF-8 >> C:\tools\php\php.ini
- echo mbstring.language = Japanese >> C:\tools\php\php.ini
- echo mbstring.encoding_translation = On >> C:\tools\php\php.ini
- echo mbstring.http_input = UTF-8 >> C:\tools\php\php.ini
- echo mbstring.http_output = pass >> C:\tools\php\php.ini
- echo mbstring.internal_encoding = UTF-8 >> C:\tools\php\php.ini
- php -r "readfile('https://getcomposer.org/installer');" | php
- php composer.phar install
# Don't actually build.
build: off
before_test:
- bash eccube_install.sh appveyor
- cp tests/require.php.jenkins tests/require.php
test_script:
- vendor\bin\phpunit.bat