Last active
May 27, 2019 11:44
-
-
Save moh-hassan/76046679824b7c571eaa69f734f1a005 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: 2.6.0-dev.{build} | |
image: | |
# Visual Studio 2017 | |
- Ubuntu | |
init: | |
- sudo apt-get install -y nuget mono-complete | |
- mono -V | |
# mono --gc=sgen ~/src/code/Tools/MSBuild/Developer/bin/xunit.console.exe | |
build: | |
project: src/CommandLine/CommandLine.csproj | |
verbosity: minimal | |
before_build: | |
- sh: pwd | |
- sh: ls | |
- sh: dotnet --info | |
# sh: dotnet restore src/CommandLine/ --verbosity m | |
# sh: dotnet restore CommandLine.sln --verbosity m | |
#- sh: msbuild src/CommandLine /t:restore /p:Configuration=Release | |
- sh: msbuild CommandLine.sln /t:restore /p:Configuration=Release | |
build_script: | |
#- dotnet build ./CommandLine.sln | |
#- msbuild src/CommandLine /t:build /p:Configuration=Release | |
- msbuild ./CommandLine.sln /t:build /p:Configuration=Release | |
before_test: | |
# nuget install xunit.runner.console -OutputDirectory ./test | |
# ls -lh ./test | |
- nuget install xunit.runner.console | |
test_script: | |
- dotnet test ./tests/CommandLine.Tests -f netcoreapp2.0 -c Release | |
# dotnet test ./tests/CommandLine.Tests -f net461 -c Release | |
# msbuild ./tests/CommandLine.Tests /t:Test | |
# mono ./tests/CommandLine.Tests/bin/Release/net461/xunit.runner.console.2.4.1.exe ./tests/CommandLine.Tests/bin/Release/net461/CommandLine.Tests.dll | |
- mono ./xunit.runner.console.2.4.1/tools/net461/xunit.console.exe ./tests/CommandLine.Tests/bin/Release/net461/CommandLine.Tests.dll | |
artifacts: | |
- path: 'src/CommandLine/bin/Release/*.nupkg' | |
name: NuGetPackages | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment