forked from Azure/azure-functions-nodejs-worker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
34 lines (32 loc) · 847 Bytes
/
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
version: 1.0.{build}
pull_requests:
do_not_increment_build_number: true
branches:
only:
- dev
- master
environment:
matrix:
- nodejs_version: "10.6.0"
- nodejs_version: "8.11.1"
image: Visual Studio 2017
clone_folder: c:\azure-functions-nodejs-worker
install:
- ps: Install-Product node $env:nodejs_version x86
cache: 'node_modules'
build_script:
- ps: |
$buildNumber = 0
if($env:APPVEYOR_REPO_TAG -eq "true") {
$buildNumber = ""
Write-Host “Found git tag. Not setting package suffix"
}
else {
$buildNumber = "-$env:APPVEYOR_BUILD_NUMBER"
Write-Host “git tag not found. Setting package suffix to '$buildNumber'"
}
.\package.ps1 -buildNumber $buildNumber
test_script:
- npm run test
artifacts:
- path: 'pkg/*.nupkg'