UNPKG

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