UNPKG

1.49 kBYAMLView Raw
1environment:
2 nodejs_version: 5.5.0
3platform:
4 - x64
5 - x86
6shallow_clone: true
7skip_non_tags: true
8install:
9 - ps: Install-Product node $env:nodejs_version $env:Platform
10 - node --version
11 - npm --version
12 - node -e "console.log(process.arch);"
13 - FOR /F "delims=" %%a IN ('node -e "console.log(require('./package.json').version)"') DO SET PACKAGE_VERSION=%%~a
14 - SET PATH=C:\Program Files (x86)\MSBuild\12.0\bin\;%PATH%
15 - SET GYP_MSVS_VERSION=2013
16 - if "%PLATFORM%" == "x64" set PATH=C:\Python27-x64;%PATH%
17 - if "%PLATFORM%" == "x86" SET PATH=C:\python27;%PATH%
18 - npm install --build-from-source
19build: off
20test_script:
21 - node_modules/.bin/mocha
22before_deploy:
23 - ps: >-
24 if($env:platform -eq "x86") {
25 $env:PACKAGER_ARCH="386"
26 } else {
27 $env:PACKAGER_ARCH="amd64"
28 }
29 - npm prune --production
30 - npm install meshblu-connector-packager
31 - npm dedupe
32 - npm install -g flatten-packages
33 - flatten-packages
34 - npm run generate:package
35 - npm run generate:schema
36 - ps: $root = Resolve-Path deploy; [IO.Directory]::GetFiles($root.Path, '*.*', 'AllDirectories') | % { Push-AppveyorArtifact $_ -FileName $_.Substring($root.Path.Length + 1) -DeploymentName Connector }
37deploy:
38- provider: GitHub
39 description: 'Meshblu Connector Bundle'
40 auth_token:
41 secure: p0bduMOKSsFF3iSAsZbDLwn5eSgZEUOqx9HEL62vNJwZEOEah3c1WcRN++A8QEYi
42 artifact: Connector
43 draft: false
44 prerelease: false
45 on:
46 branch: master
47 appveyor_repo_tag: true