-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
84 lines (65 loc) · 2.1 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
74
75
76
77
78
79
80
81
82
83
84
# appveyor file
# http://www.appveyor.com/docs/appveyor-yml
# Try out "interactive-mode"
os: Windows Server 2012 R2
# build version format
version: "{build}-{branch}"
# Set a known clone folder
clone_folder: C:\projects\unittest
# environments
environment:
oauthtoken:
secure: Pqn9WKVpsBrDqhg5l2L7FeBGCdhmTipBkGOSb1Q3xb91KbnK8f8b/bYuc//y/Rte
# branches
#branches:
# only:
# - main
# - develop
# fix lineendings in Windows
init:
- git config --global core.autocrlf input
- git config --global user.name "Tomoya Koyanagi"
- git config --global user.email tomk79@gmail.com
# Install scripts
install:
## Set PHP.
- ps: Set-Service wuauserv -StartupType Manual
- cinst php --version 8.1.4 -y
- SET PATH=C:\tools\php81\;%PATH%
- cd C:\tools\php81
- copy php.ini-production php.ini
- echo date.timezone="Asia/Tokyo" >> php.ini
- echo extension_dir=ext >> php.ini
- echo extension=php_openssl.dll >> php.ini
- echo extension=php_gd.dll >> php.ini
- echo extension=php_mbstring.dll >> php.ini
- echo extension=php_curl.dll >> php.ini
- echo extension=php_xsl.dll >> php.ini
- echo extension=php_intl.dll >> php.ini
- echo extension=php_pdo_sqlite.dll >> php.ini
- echo extension=php_fileinfo.dll >> php.ini
- echo output_buffering = Off >> php.ini
- echo default_charset = UTF-8 >> php.ini
- echo mbstring.language = Japanese >> php.ini
- echo mbstring.encoding_translation = On >> php.ini
- echo mbstring.http_input = UTF-8 >> php.ini
- echo mbstring.http_output = pass >> php.ini
- echo mbstring.internal_encoding = UTF-8 >> php.ini
- php -v
- where php
## Set Composer.
- cd C:\projects\unittest
- php -r "readfile('https://getcomposer.org/installer');" | php
- php composer.phar --version
- php composer.phar config -g github-oauth.github.com %oauthtoken%
build_script:
- php composer.phar install
- php vendor\phpunit\phpunit\phpunit
test: off
deploy: off
notifications:
# Email
- provider: Email
to:
- tomk79@gmail.com
on_build_status_changed: true