Skip to content

Commit e3aa36d

Browse files
authored
Fix travis (#238)
- Use dotnet cli and netcoreapp2/netstandard2 for testing - Ignore _testRunner directory (currently not enabled)
1 parent be7c86d commit e3aa36d

File tree

2 files changed

+25
-14
lines changed

2 files changed

+25
-14
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,3 +251,4 @@ paket-files/
251251
.idea/
252252
*.sln.iml
253253
/test/ICSharpCode.SharpZipLib.TestBootstrapper/Properties/launchSettings.json
254+
_testRunner/

.travis.yml

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,32 @@
11
language: csharp
2-
mono:
3-
- latest
4-
os:
5-
- linux
6-
- osx
72
solution: ICSharpCode.SharpZipLib.sln
3+
4+
#matrix:
5+
# include:
6+
# - mono: latest
7+
# - mono: none
8+
# env: NETCORE=1
9+
# dotnet: 2.1
10+
mono: none
11+
dotnet: 2.1
12+
os: linux
813
install:
9-
- nuget restore ICSharpCode.SharpZipLib.sln
14+
- dotnet restore
15+
# - nuget restore ICSharpCode.SharpZipLib.sln
16+
# - nuget install NUnit.Console -Version 3.8.0 -OutputDirectory _testRunner
1017
script:
11-
- xbuild /p:Configuration=Debug ICSharpCode.SharpZipLib.sln
12-
- xbuild /p:Configuration=Release ICSharpCode.SharpZipLib.sln
13-
- mono ./packages/NUnit.ConsoleRunner.3.2.1/tools/nunit3-console.exe --framework=mono-4.0 --labels=All --result=./Documentation/nunit3-test-results-travis.xml ./bin/Release/ICSharpCode.SharpZipLib.Tests.dll
18+
- dotnet build -f netstandard2 src/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.csproj
19+
- dotnet run -c Debug -f netcoreapp2 -p test/ICSharpCode.SharpZipLib.TestBootstrapper/ICSharpCode.SharpZipLib.TestBootstrapper.csproj -- --where "class !~ WindowsNameTransformHandling & test !~ ZipEntryFactoryHandling.CreatedValues & test !~ ZipNameTransformHandling.FilenameCleaning" --result=docs/nunit3-test-results-debug.xml
20+
- dotnet run -c Release -f netcoreapp2 -p test/ICSharpCode.SharpZipLib.TestBootstrapper/ICSharpCode.SharpZipLib.TestBootstrapper.csproj -- --where "class !~ WindowsNameTransformHandling & test !~ ZipEntryFactoryHandling.CreatedValues & test !~ ZipNameTransformHandling.FilenameCleaning" --result=docs\nunit3-test-results-release.xml
21+
# - dotnet test test/ICSharpCode.SharpZipLib.Tests/ICSharpCode.SharpZipLib.Tests.csproj
22+
# - xbuild /p:Configuration=Release ICSharpCode.SharpZipLib.sln
23+
# - mono ./packages/NUnit.ConsoleRunner.3.2.1/tools/nunit3-console.exe --framework=mono-4.0 --labels=All --result=./Documentation/nunit3-test-results-travis.xml ./bin/Release/ICSharpCode.SharpZipLib.Tests.dll
1424
after_script:
15-
- nuget pack Build/ICSharpCode.SharpZipLib.nuspec -BasePath Build -OutputDirectory bin/Release
16-
cache:
17-
directories:
18-
- bin
19-
- Documentation
25+
- dotnet pack -f netstandard2 -o _dist/ src/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.csproj
26+
#cache:
27+
# directories:
28+
# - bin
29+
# - Documentation
2030
#deploy:
2131
# provider: releases
2232
# api_key: "GITHUB OAUTH TOKEN"

0 commit comments

Comments
 (0)