source: branches/version-2_13_3/appveyor.yml @ 23591

Revision 23591, 1.8 KB checked in by kimoto, 7 years ago (diff)

#150 ユニットテスト環境の整備

phpunit.xml.distは環境に依存しないので1ファイルに統一

Line 
1# appveyor file
2# http://www.appveyor.com/docs/appveyor-yml
3
4# Set build version format here instead of in the admin panel.
5version: "1.0.{build}"
6
7# Fix line endings in Windows. (runs before repo cloning)
8init:
9  - git config --global core.autocrlf input
10
11environment:
12  global:
13    USER: "root"
14    DBNAME: "myapp_test"
15    DBPASS: " "
16    DBUSER: "root"
17  matrix:
18  - db: mysql
19    provider: mysql
20
21services:
22  - iis 
23
24# Install scripts. (runs after repo cloning)
25install:
26  # Set MySQL.
27  - cp tests/my.cnf c:\
28  - cinst mysql
29  - SET PATH=C:\tools\mysql\current\bin\;%PATH%
30  # Set bash.
31  - cinst mingw-get
32  - set PATH=%PATH%;C:\MinGW\msys\1.0\bin;C:\MinGW\bin
33  - mingw-get install mingw-developer-toolkit
34  ## Set PHP.
35  - cinst php
36  - SET PATH=C:\php\;%PATH%
37  - cd c:\php
38  - copy php.ini-production php.ini
39  - echo date.timezone="Asia/Tokyo" >> php.ini
40  - echo extension_dir=ext >> php.ini
41  - echo extension=php_openssl.dll >> php.ini
42  - echo extension=php_gd2.dll >> php.ini
43  - echo extension=php_mbstring.dll >> php.ini
44  - echo extension=php_mysql.dll >> php.ini
45  - echo extension=php_curl.dll >> php.ini
46  - echo output_buffering = Off >> php.ini
47  - echo default_charset = UTF-8 >> php.ini
48  - echo mbstring.language = Japanese >> php.ini
49  - echo mbstring.encoding_translation = On >> php.ini
50  - echo mbstring.http_input = UTF-8 >> php.ini
51  - echo mbstring.http_output = pass >> php.ini
52  - echo mbstring.internal_encoding = UTF-8 >> php.ini
53  - cd C:\projects\ec-cube
54  - php -r "readfile('https://getcomposer.org/installer');" | php
55  - php composer.phar install
56
57# Don't actually build.
58build: off
59
60before_test:
61  - bash eccube_install.sh mysql
62  - cp tests/require.php.jenkins tests/require.php
63   
64test_script:
65  - php -i
66  - vendor\bin\phpunit.bat --bootstrap data\config\config.php tests
Note: See TracBrowser for help on using the repository browser.