environment: nodejs_version: 5.5.0 platform: - x64 - x86 shallow_clone: true skip_non_tags: true install: - ps: Install-Product node $env:nodejs_version $env:Platform - node --version - npm --version - node -e "console.log(process.arch);" - FOR /F "delims=" %%a IN ('node -e "console.log(require('./package.json').version)"') DO SET PACKAGE_VERSION=%%~a - SET PATH=C:\Program Files (x86)\MSBuild\12.0\bin\;%PATH% - SET GYP_MSVS_VERSION=2013 - if "%PLATFORM%" == "x64" set PATH=C:\Python27-x64;%PATH% - if "%PLATFORM%" == "x86" SET PATH=C:\python27;%PATH% - npm install --build-from-source build: off test_script: - node_modules/.bin/mocha before_deploy: - ps: >- if($env:platform -eq "x86") { $env:PACKAGER_ARCH="386" } else { $env:PACKAGER_ARCH="amd64" } - npm prune --production - npm install meshblu-connector-packager - npm dedupe - npm install -g flatten-packages - flatten-packages - npm run generate:package - npm run generate:schema - ps: $root = Resolve-Path deploy; [IO.Directory]::GetFiles($root.Path, '*.*', 'AllDirectories') | % { Push-AppveyorArtifact $_ -FileName $_.Substring($root.Path.Length + 1) -DeploymentName Connector } deploy: - provider: GitHub description: 'Meshblu Connector Bundle' auth_token: secure: p0bduMOKSsFF3iSAsZbDLwn5eSgZEUOqx9HEL62vNJwZEOEah3c1WcRN++A8QEYi artifact: Connector draft: false prerelease: false on: branch: master appveyor_repo_tag: true