/
.appveyor.yml
executable file
·114 lines (101 loc) · 3.46 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
# php.appveyor
environment:
version: 20181010
affix: xdhq
ext: dll
zip: $(affix)znd-v$(version)-win-$(platform).zip
platform:
# By default, it's the AMD64(/x64) version of PHP which is installed.
# Have to search how to change this.
# - x86
- x64
configuration: Release
os :
- Visual Studio 2017
# - Visual Studio 2015
# - Visual Studio 2013
## Disabled to facilite 'Atlas' toolkit deployment.
# https://help.appveyor.com/discussions/problems/5616-not-able-to-build-due-to-problem-in-chocolateyinstallps1#comment_41949965
# install:
# - ps: Set-Service wuauserv -StartupType Manual
# - cinst -y php
## Disabled to facilite 'Atlas' toolkit deployment.
# before_build:
# - echo %APPVEYOR_PROJECT_NAME%
# # Retrieving, building and testing 'ZNDq'.
# - git clone https://github.com/epeios-q37/zndq.git
# - cd zndq
# # To maintainer : content of this section is very similar to the one in 'zndq.appveyor.yml'.
# - call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
# - call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
# - dir
# - dir C:\tools\php71
# - dir C:\tools\php71\dev
# - curl -L https://github.com/php/php-src/archive/php-7.1.10.tar.gz --output php.tgz
# - 7z x php.tgz
# - 7z x php.tar
# - cd php-src-php-7.1.10
# - buildconf.bat --add-modules-dir=c:\projects\%APPVEYOR_PROJECT_NAME%\zndq
# - configure.bat
# # We do not build from the source (no 'nmake'), as we use the already installed PHP binaries.
# # 'buildconf.bat' and 'configure.bat' are only launched to generate some files needed
# # to compile the extension (namely 'main/config.w32.h').
# - dir
# - cd ..
# - msbuild zndq.vcxproj
# - echo "***** 'ZNDq' TEST BEGIN *****" && C:\tools\php71\php -dextension=./zndq.dll test.php && echo "***** 'ZNDq' TEST END *****"
# # 'Installing' 'ZNDq'.
# - copy zndq.dll ..
# - copy zndq.xcfg ..
# - copy zndq.xlcl ..
# - cd ..
## Disabled to facilite 'Atlas' toolkit deployment.
# test_script:
# - echo "***** 'XDHq' TEST BEGIN *****" && C:\tools\php71\php -dextension=./zndq.dll test.php && echo "***** 'XDHq' TEST END *****"
# matrix:
# allow_failures:
# - os: Visual Studio 2017
skip_tags: true
after_build:
# ".zip" part.
- set dir=%affix%-php-%version%%-%platform%
- mkdir %dir% || exit 1
- copy %affix%znd.%ext% %dir%\%affix%znd.%ext% || exit 1
- 7z a %zip% %dir%
# '.tar.gz' part, for the NPM installation ('node-pre-gyp') of the 'Atlas' toolkit component.
- if "%platform%"=="x86" set platform=ia32
- echo | set /p="%affix%znd-v%version%" >>tmpfile.tmp || true
- echo | set /p="-win32-" >>tmpfile.tmp || true
- echo | set /p="%platform%" >>tmpfile.tmp || true
- set /p addon= <tmpfile.tmp
- echo .%addon%.
- set dir=win32-%platform%
- mkdir %dir%
- copy %affix%znd.dll %dir%
# It MUST be '.tar.gz' to be retrieved by 'node-pre-gyp' when installed with 'npm' !
- 7z a -ttar -so dummy %dir% | 7z a -si %addon%.tar.gz
artifacts:
- path: $(zip)
- name: tgz
path: '*.tar.gz'
deploy:
- provider: GitHub
tag: v$(version)
description: ''
auth_token:
secure: kKebvPLjikQbZ7E1Vm8omoYc9K0wOcKxjWsglp3+D4fV9ev/FaWr8ZBI+AseOTis
draft: false
prerelease: false
artifact: tgz
on:
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- provider: GitHub
tag: v$(version)
description: ''
auth_token:
secure: kKebvPLjikQbZ7E1Vm8omoYc9K0wOcKxjWsglp3+D4fV9ev/FaWr8ZBI+AseOTis
draft: false
prerelease: false
artifact: $(zip)
on:
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017