forked from mapnik/node-mapnik
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
75 lines (71 loc) · 3.62 KB
/
appveyor.yml
File metadata and controls
75 lines (71 loc) · 3.62 KB
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
environment:
node_pre_gyp_accessKeyId:
secure: 7DrSVc5eIGtmMcki5H+iRft+Tk3MJTwDBQEUuJHWaQ4=
node_pre_gyp_secretAccessKey:
secure: 1amwJJw9fu0j6dXnc5KsAQbSYf7Cjw/dapT6OZWABa6nc52grkKeLQ+DGaOfQz8i
matrix:
- nodejs_version: 0.11.14
platform: x86
msvs_toolset: 14
BUILD_ARGS: --dist-url=https://s3.amazonaws.com/mapbox/node-cpp11 --toolset=v140
- nodejs_version: 0.11.14
platform: x64
msvs_toolset: 14
BUILD_ARGS: --dist-url=https://s3.amazonaws.com/mapbox/node-cpp11 --toolset=v140
- nodejs_version: 0.10.33
platform: x86
msvs_toolset: 14
BUILD_ARGS: --dist-url=https://s3.amazonaws.com/mapbox/node-cpp11 --toolset=v140
- nodejs_version: 0.10.33
platform: x64
msvs_toolset: 14
BUILD_ARGS: --dist-url=https://s3.amazonaws.com/mapbox/node-cpp11 --toolset=v140
os: Visual Studio 2015 Preview
shallow_clone: true
install:
- scripts\remove_node.bat
# add local node to path (since we install it below)
- SET PATH=%CD%;%PATH%;
# call VS Command Prompt AFTER DOWNLOADS (require lowercase platform)
# VS command prompt will override %PLATFORM% to upper case!!!
# %PLATFORM% will go from x64 to X64
- SET PATH=C:\Program Files (x86)\MSBuild\%msvs_toolset%.0\bin;%PATH%
- SET PATH=C:\Program Files (x86)\Microsoft Visual Studio %msvs_toolset%.0\VC\bin;%PATH%
# use 64 bit python if platform is 64 bit
- if "%PLATFORM%" == "x64" set PATH=C:\Python27-x64;%PATH%
- SET PATH=C:\Program Files\7-Zip;%PATH%
- SET ARCHPATH=
- if %platform% == x64 (SET ARCHPATH=x64/)
- ps: Write-Output "fetching mapnik sdk https://mapnik.s3.amazonaws.com/dist/dev/mapnik-win-sdk-$env:msvs_toolset.0-$env:Platform-v3.0.0-rc1-230-g008168f.7z"
- ps: Start-FileDownload https://mapnik.s3.amazonaws.com/dist/dev/mapnik-win-sdk-$env:msvs_toolset.0-$env:Platform-v3.0.0-rc1-230-g008168f.7z -FileName mapnik-sdk.7z
- ps: Write-Output "extracting mapnik sdk"
- ps: invoke-expression "& 7z -y x mapnik-sdk.7z | FIND /V `"ing `""
# install node version per visual studio toolset
- ps: Write-Output "fetching https://mapbox.s3.amazonaws.com/node-cpp11/v$env:nodejs_version/${env:ARCHPATH}node.exe"
- ps: Start-FileDownload "https://mapbox.s3.amazonaws.com/node-cpp11/v$env:nodejs_version/${env:ARCHPATH}node.exe"
# clear out node-gyp header cache
- if "%msvs_toolset%" == "14" rd /s /q %USERPROFILE%\.node-gyp
# add local node-pre-gyp dir to path
- SET PATH=node_modules\.bin;%PATH%
# call VS Command Prompt AFTER DOWNLOADS, will override %PLATFORM% to upper case!!!
- if %platform% == x64 CALL "C:\Program Files (x86)\Microsoft Visual Studio %msvs_toolset%.0\VC\vcvarsall.bat" amd64
- if %platform% == x86 CALL "C:\Program Files (x86)\Microsoft Visual Studio %msvs_toolset%.0\VC\vcvarsall.bat" amd64_x86
- node -v
- node -e "console.log(process.arch,process.execPath)"
- SET MAPNIK_SDK=%CD%\mapnik-sdk
- CALL scripts\before-build.bat
- npm install --build-from-source --msvs_version=2013 %BUILD_ARGS% --loglevel=http
- call node_modules\.bin\node-pre-gyp reveal module_path --silent > binding_path.txt
- SET /p NODEMAPNIK_BINDING_DIR=<binding_path.txt
- del binding_path.txt
- ps: scripts\build_against_sdk_02-copy-deps-to-bindingdir.ps1
- powershell scripts\show_module_runtime.ps1 %CD%
- ps: scripts\build_against_sdk_03-write-mapnik.settings.ps1
- npm test
- node-pre-gyp package testpackage %BUILD_ARGS%
- SET CM=%APPVEYOR_REPO_COMMIT_MESSAGE%
- if not "%CM%" == "%CM:[publish binary]=%" node-pre-gyp --msvs_version=2013 publish %BUILD_ARGS%
- if not "%CM%" == "%CM:[republish binary]=%" node-pre-gyp --msvs_version=2013 unpublish publish %BUILD_ARGS%
build: off
test: off
deploy: off