-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (24 loc) · 1.51 KB
/
.travis.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
language: csharp
mono: 5.0.0
dotnet: 2.0.0
install:
- dotnet restore
- nuget install xunit.runner.console -Version 2.3.1 -OutputDirectory testrunner
script:
# no tests
- dotnet build src/HamiltonianGraph --configuration Release --framework netstandard1.3
- dotnet build src/HamiltonianGraph --configuration Release --framework netstandard1.6
# xunit: netcoreapp2.0 tests netstandard2.0 (implicit building)
- dotnet test tests/HamiltonianGraph.UnitTests --configuration Release --framework netcoreapp2.0
# xunit: net452 tests net452
# Debug
- msbuild tests/HamiltonianGraph.UnitTests /p:Configuration=Debug /p:TargetFramework=net452
- mono testrunner/xunit.runner.console.2.3.1/tools/net452/xunit.console.exe tests/HamiltonianGraph.UnitTests/bin/Debug/net452/HamiltonianGraph.UnitTests.dll
# Release
- msbuild tests/HamiltonianGraph.UnitTests /p:Configuration=Release /p:TargetFramework=net452
- mono testrunner/xunit.runner.console.2.3.1/tools/net452/xunit.console.exe tests/HamiltonianGraph.UnitTests/bin/Release/net452/HamiltonianGraph.UnitTests.dll
# xunit: net452 tests net40
# - dotnet restore src/HamiltonianGraph /p:configuration=Release
- msbuild src/HamiltonianGraph /p:targetFramework=net40 /p:configuration=Release
- cp src/HamiltonianGraph/bin/Release/net40/HamiltonianGraph.dll tests/HamiltonianGraph.UnitTests/bin/Release/net452
- mono testrunner/xunit.runner.console.2.3.1/tools/net452/xunit.console.exe tests/HamiltonianGraph.UnitTests/bin/Release/net452/HamiltonianGraph.UnitTests.dll