Last active
May 8, 2019 23:15
-
-
Save moh-hassan/643c091fb6ad56e8b2c54dc6275395ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version is nly changed by RELEASE TAG | |
version: 2.5.2-dev.{build} | |
image: | |
#- Visual Studio 2017 | |
- Ubuntu | |
#shallow_clone: true | |
pull_requests: | |
do_not_increment_build_number: true | |
init: | |
- ps: | | |
git config --global core.autocrlf input | |
if ($env:APPVEYOR_REPO_TAG -eq "true") { | |
$ver = $env:APPVEYOR_REPO_TAG_NAME | |
if($ver.StartsWith("v") -eq $true) { $ver = $ver.Substring(1) } | |
Update-AppveyorBuild -Version $ver | |
} | |
- sh: echo $APPVEYOR_REPO_TAG | |
- sh: apt-get update | |
- sh: apt-get install -y nuget mono-devel monodevelop mono-xbuild | |
- sh: nuget update -self | |
environment: | |
APPVEYOR_YML_DISABLE_PS_LINUX: true | |
matrix: | |
- BUILD_TARGET: base | |
#- BUILD_TARGET: fsharp | |
configuration: Release | |
build: | |
parallel: false # enable MSBuild parallel builds | |
# MSBuild verbosity level | |
# quiet|minimal|normal|detailed | |
verbosity: minimal | |
before_build: | |
# Display .NET Core version | |
- cmd: dotnet --version | |
- sh: dotnet --version | |
# Display minimal restore text | |
- cmd: dotnet restore CommandLine.sln --verbosity m | |
- sh: dotnet restore CommandLine.sln --verbosity m | |
- sh: nuget restore | |
build_script: | |
- cmd: dotnet build src/CommandLine/ -c Release --version-suffix %APPVEYOR_BUILD_VERSION% /p:BuildTarget=%BUILD_TARGET% | |
# sh: xbuild CommandLine.sln | |
- sh: msbuild CommandLine.sln | |
- sh: dotnet build src/CommandLine/ -c Release --version-suffix $APPVEYOR_BUILD_VERSION /p:BuildTarget=$BUILD_TARGET -f netstandard2.0 | |
test_script: | |
- cmd: dotnet test tests/CommandLine.Tests/ /p:BuildTarget=%BUILD_TARGET% | |
- sh: dotnet test tests/CommandLine.Tests/ /p:BuildTarget=$BUILD_TARGET -f netcoreapp2.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment