Update appveyor.yml

This commit is contained in:
Sipke Schoorstra 2021-09-20 11:14:01 +02:00
parent 972e27082d
commit 9408d9cd0e

View file

@ -1,12 +1,8 @@
image: Previous Visual Studio 2019
init:
- cmd: git config --global core.autocrlf true
- elsa_build_version = "1.1.1"
environment:
elsa_version: 2.3.0
# elsa_build_version: 0.0.0
elsa_build_version: 0.0.0
nodejs_version: "14.6.0"
# AppVeyor installs Java on its build agents by default, but it
# picks an old version that's not compatible with SonarQube.
@ -17,7 +13,19 @@ environment:
sonarcloud_api_key:
secure: qaE9kOVkGGFM7ZMf3YeliZxDU9udTCy6W5xXHJ9T+tXv5qXPMYlIdR7hyNgxW04A
version: ${elsa_build_version}
init:
- cmd: git config --global core.autocrlf true
- ps: |
if ($env:APPVEYOR_REPO_TAG -eq "true")
{
$env:elsa_build_version=$env:APPVEYOR_REPO_TAG_NAME
}
else
{
$env:elsa_build_version="$($env:elsa_version)-preview.$($env:APPVEYOR_BUILD_NUMBER)"
}
version: 2.3.0-preview.{build}
pull_requests:
do_not_increment_build_number: true