forked from phalcon/cphalcon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
114 lines (102 loc) · 3.07 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
version: 3.3.2-{build}
environment:
matrix:
- PHP_MINOR: 7.0
VC_VERSION: 14
BUILD_TYPE: Win32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
- PHP_MINOR: 7.0
VC_VERSION: 14
BUILD_TYPE: nts-Win32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
- PHP_MINOR: 7.1
VC_VERSION: 14
BUILD_TYPE: Win32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
- PHP_MINOR: 7.1
VC_VERSION: 14
BUILD_TYPE: nts-Win32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
- PHP_MINOR: 7.2
VC_VERSION: 15
BUILD_TYPE: Win32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- PHP_MINOR: 7.2
VC_VERSION: 15
BUILD_TYPE: nts-Win32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
PHP_PATH: C:\Projects\php
PHP_SDK_PATH: C:\Projects\php-sdk
DEVPACK_PATH: C:\Projects\php-devpack
TEST_PHP_EXECUTABLE: C:\Projects\php\php.exe
PHP_SDK_VERSION: 2.0.7
PACKAGE_PREFIX: phalcon
EXTENSION_NAME: phalcon
EXTENSION_FILE: php_phalcon.dll
NO_INTERACTION: 1
REPORT_EXIT_STATUS: 1
COMPOSER_NO_INTERACTION: 1
PARSER_VERSION: 1.1.2
PARSER_RELEASE: 290
PHALCON_STABLE_VERSION: 3.3.1
matrix:
fast_finish: true
cache:
- 'C:\Downloads -> appveyor.yml'
- 'vendor -> composer.json'
- 'composer.phar -> composer.json'
clone_depth: 1
clone_folder: c:\projects\phalcon
platform:
- x86
- x64
branches:
only:
- master
- 4.0.x
- 3.3.x
install:
- git submodule update --init --recursive
- ps: Import-Module .\tests\_ci\appveyor.psm1
- ps: AppendSessionPath
- ps: SetupPhpVersionString
- ps: EnsureRequiredDirectoriesPresent
- ps: Ensure7ZipIsInstalled
- ps: InstallSdk
- ps: InstallPhp
- ps: InstallPhpDevPack
- ps: InstallStablePhalcon
- ps: InstallParser
- ps: TuneUpPhp
build_script:
- ps: InitializeBuildVars
- ps: InitializeReleaseVars
- ps: InstallBuildDependencies
- '"%VSCOMNTOOLS%\VsDevCmd" %PLATFORM%'
- '"%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat" %ARCH%'
- '%PHP_SDK_PATH%\bin\phpsdk_setvars'
- 'vendor\bin\zephir generate --backend=ZendEngine3 -Wnonexistent-function -Wnonexistent-class -Wunused-variable'
- 'cd %APPVEYOR_BUILD_FOLDER%\build'
- 'php gen-build.php'
- 'cd %APPVEYOR_BUILD_FOLDER%\build\php7\safe'
- '%DEVPACK_PATH%\phpize.bat'
- 'configure --with-prefix=%PHP_PATH% --with-php-build=%DEVPACK_PATH% --disable-all --enable-phalcon'
- nmake 2> compile-errors.log 1> compile.log
- ps: EnableExtension
after_build:
- ps: PrepareReleasePackage
artifacts:
- path: '.\$(RELEASE_ZIPBALL).zip'
type: zip
name: Phalcon
on_failure :
- ps: PrintLogs "${Env:APPVEYOR_BUILD_FOLDER}\build\php7\safe"
- ps: PrintVars
- ps: PrintDirectoriesContent
- ps: PrintPhpInfo
notifications:
- provider: Email
to:
- build@phalconphp.com
subject: "Build Phalcon [{{status}}]"
on_build_status_changed: true