UNPKG

windows-autoconf

Version:
137 lines (93 loc) 3.52 kB
# Test against the latest version of this Node.js version environment: nodejs_version: "7" DEBUG: "autoconf" NPM_TOKEN: secure: p6I7IcfVWhufrMLBwgQ2OQgMA/65tmLwryPmVr+zbRGpSUB/Kq/JPP/MSWmPNutQ matrix: - GYP_MSVS_VERSION: "auto" APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 - GYP_MSVS_VERSION: "" APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 - GYP_MSVS_VERSION: "2015" APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 - GYP_MSVS_VERSION: "auto" APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 - GYP_MSVS_VERSION: "" APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 - GYP_MSVS_VERSION: "2013" APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 - GYP_MSVS_VERSION: "2012" APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 - GYP_MSVS_VERSION: "2010" APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 #the official config for deploy - GYP_MSVS_VERSION: "2017" APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 init: - ps: >- & { Echo "GYP_MSVS_VERSION='$env:GYP_MSVS_VERSION'" }; if (($env:GYP_MSVS_VERSION -ge 2012) -and ($env:GYP_MSVS_VERSION -lt 2015)) { $env:TEST_NODE_GYP="0" } else { $env:TEST_NODE_GYP="1" } if (($env:APPVEYOR_REPO_TAG -eq 'true') -and ($env:GYP_MSVS_VERSION -eq 2017) -and ($env:APPVEYOR_IMAGE -eq 2017)) { $env:SHOULD_PUBLISH="1" }; install: - ps: Install-Product node $env:nodejs_version - cmd: >- npm config set "//registry.npmjs.org/:_authToken=%NPM_TOKEN%" -q SET NPM_TOKEN= git submodule init git submodule update md C:\projects\windows-autoconf\logs set > C:\projects\windows-autoconf\logs\set.log npm -g install mocha > nul npm link tools\try_powershell.cmd > C:\projects\windows-autoconf\logs\vs-output.json cd C:\projects & git clone https://github.com/node4good/gyp.js.git cd C:\projects\gyp.js & npm link windows-autoconf cd C:\projects & git clone https://github.com/refack/node-gyp.git cd C:\projects\node-gyp & npm link windows-autoconf cd C:\projects & git clone https://github.com/refack/build.git boost.build build: off test_script: - cmd: >- cd C:\projects\windows-autoconf npm test 2> C:\projects\windows-autoconf\logs\windows-autoconf_err.log - ps: >- cd C:\projects\boost.build; $s = Get-Content .\bootstrap.bat | select -Skip 1; $s | Set-Content .\bootstrap.bat; $s = Get-Content .\src\engine\build.bat | select -Skip 1; $s | Set-Content .\src\engine\build.bat; .\bootstrap.bat 2> C:\projects\windows-autoconf\logs\bootstrap_err.log if (!(Test-Path bjam.exe)) {throw} #- cmd: >- # cd C:\projects\boost.build # # copy "C:\projects\boost.build\bootstrap.log" "C:\projects\windows-autoconf\logs\" # # cd test\test2 # # ..\..\bjam 2> C:\projects\windows-autoconf\logs\bjam_err.log; # - cmd: >- cd C:\projects\node-gyp npm i > C:\projects\windows-autoconf\logs\node-gyp_npm.log IF %TEST_NODE_GYP%==1 npm test 2> C:\projects\windows-autoconf\logs\node-gyp_err.log - cmd: >- cd C:\projects\gyp.js npm i --ignore-scripts node_modules\.bin\babel src -d lib mocha 2> C:\projects\windows-autoconf\logs\gyp_js_err.log deploy_script: - cmd: >- IF DEFINED SHOULD_PUBLISH npm publish on_finish: - ps: >- cd C:\projects\windows-autoconf\logs\; Get-Item *.* | %{ Push-AppveyorArtifact $_.FullName}