node-query/node_modules/sqlite3/appveyor.yml

91 lines
3.8 KiB
YAML
Raw Normal View History

2014-11-03 10:59:34 -05:00
environment:
node_pre_gyp_accessKeyId:
secure: 7DrSVc5eIGtmMcki5H+iRft+Tk3MJTwDBQEUuJHWaQ4=
node_pre_gyp_secretAccessKey:
secure: 1amwJJw9fu0j6dXnc5KsAQbSYf7Cjw/dapT6OZWABa6nc52grkKeLQ+DGaOfQz8i
matrix:
2014-11-25 14:23:08 -05:00
- nodejs_version: 0.10.32
2014-11-03 10:59:34 -05:00
nw_version: 0.8.6
PLATFORM: x86
2014-11-25 14:23:08 -05:00
msvs_toolset: 12
- nodejs_version: 0.10.32
2014-11-03 10:59:34 -05:00
nw_version: 0.8.6
PLATFORM: x64
2014-11-25 14:23:08 -05:00
msvs_toolset: 12
2014-11-03 10:59:34 -05:00
- nodejs_version: 0.11.13
nw_version: 0.10.5
PLATFORM: x86
2014-11-25 14:23:08 -05:00
msvs_toolset: 12
2014-11-03 10:59:34 -05:00
- nodejs_version: 0.11.13
nw_version: 0.10.5
PLATFORM: x64
2014-11-25 14:23:08 -05:00
msvs_toolset: 12
- nodejs_version: 0.11.13
nw_version: 0.10.5
PLATFORM: x86
msvs_toolset: 12
BUILD_ARGS: --target=0.11.14
- nodejs_version: 0.11.13
nw_version: 0.10.5
PLATFORM: x64
msvs_toolset: 12
BUILD_ARGS: --target=0.11.14
# custom 64 bit visual studio 2014 builds
- nodejs_version: 0.10.33
PLATFORM: x64
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
os: Visual Studio 2014 CTP4
2014-11-03 10:59:34 -05:00
install:
2014-11-25 14:23:08 -05:00
# add local node to path (since we install it for msvs_toolset == 14)
- SET PATH=%CD%;%PATH%;
2014-11-03 10:59:34 -05:00
# add local node-pre-gyp dir to path
- SET PATH=node_modules\.bin;%PATH%
2014-11-25 14:23:08 -05:00
# use 64 bit python if platform is 64 bit
- if "%PLATFORM%" == "x64" set PATH=C:\Python27-x64;%PATH%
# install node version per visual studio toolset
- if "%msvs_toolset%" == "12" powershell Install-Product node $env:nodejs_version $env:Platform
- if "%msvs_toolset%" == "14" powershell Write-Output "fetching https://mapbox.s3.amazonaws.com/node-cpp11/v$env:nodejs_version/$env:Platform/node.exe"
- if "%msvs_toolset%" == "14" powershell Start-FileDownload "https://mapbox.s3.amazonaws.com/node-cpp11/v$env:nodejs_version/$env:Platform/node.exe"
# only needed if not using 'os: Visual Studio 2014 CTP4'
#- if "%msvs_toolset%" == "14" powershell Write-Output "https://mapbox.s3.amazonaws.com/node-cpp11/vcredist_$env:Platform.exe"
#- if "%msvs_toolset%" == "14" powershell Start-FileDownload "https://mapbox.s3.amazonaws.com/node-cpp11/vcredist_$env:Platform.exe"
#- if "%msvs_toolset%" == "14" .\vcredist_%platform%.exe /q /norestart
- node -v
- node -e "console.log(process.argv,process.execPath)"
- npm -v
2014-11-03 10:59:34 -05:00
# upgrade node-gyp to support --msvs_version=2013
- npm install node-gyp
2014-11-25 14:23:08 -05:00
# clear out node-gyp header cache
- if "%msvs_toolset%" == "14" rd /s /q %USERPROFILE%\.node-gyp
- 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%
- 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
- npm install --build-from-source --msvs_version=2013 %BUILD_ARGS% --loglevel=http
- node_modules\.bin\node-pre-gyp reveal module --silent > module.txt
- SET /p MODULE=<module.txt
- del module.txt
- node -e "console.log(process.execPath)" > node_path.txt
- SET /p NODE_EXE_PATH=<node_path.txt
- del node_path.txt
# should display MSVCP140.dll if build with visual studio 2014 and /MD
- dumpbin /DEPENDENTS "%NODE_EXE_PATH%" || true
- dumpbin /DEPENDENTS "%MODULE%" || true
- npm test || true
- node-pre-gyp package %BUILD_ARGS%
2014-11-03 10:59:34 -05:00
# make commit message env var shorter
- SET CM=%APPVEYOR_REPO_COMMIT_MESSAGE%
2014-11-25 14:23:08 -05:00
- if not "%CM%" == "%CM:[publish binary]=%" node-pre-gyp --msvs_version=2013 publish %BUILD_ARGS%
- if "%msvs_toolset%" == "12" call scripts\build_for_node_webkit.cmd %PLATFORM%
2014-11-03 10:59:34 -05:00
build: OFF
test: OFF
deploy: OFF