forked from phalcon/cphalcon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
91 lines (80 loc) · 2.37 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
version: 4.0.0-{build}
environment:
matrix:
- 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
PHP_DEVPACK: 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.4
PARSER_RELEASE: 418
PSR_PECL_VERSION: 0.6.1
ZEPHIR_VERSION: 0.11.8
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
install:
- ps: Import-Module .\tests\_ci\appveyor.psm1
- ps: AppendSessionPath
- ps: SetupPhpVersionString
- ps: EnsureRequiredDirectoriesPresent
- ps: Ensure7ZipIsInstalled
- ps: InstallSdk
- ps: InstallPhp
- ps: InstallPhpDevPack
- ps: InstallPsrExtension
- ps: InstallParser
- ps: InstallZephir
- ps: TuneUpPhp
build_script:
- ps: InitializeBuildVars
- ps: InitializeReleaseVars
- ps: InstallBuildDependencies
- '"%VSCOMNTOOLS%\VsDevCmd" %PLATFORM%'
- '"%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat" %ARCH%'
- '%PHP_SDK_PATH%\bin\phpsdk_setvars'
- '%APPVEYOR_BUILD_FOLDER%\zephir.bat 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'
- '%PHP_DEVPACK%\phpize.bat'
- 'configure --with-prefix=%PHP_PATH% --with-php-build=%PHP_DEVPACK% --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