-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
47 lines (47 loc) · 1.39 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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:
- npm test
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:
[github-release-key]
artifact: Connector
draft: false
prerelease: false
on:
branch: master
appveyor_repo_tag: true