-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (25 loc) · 946 Bytes
/
.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
31
32
33
34
language: csharp
mono:
- latest
- 3.12.0
- 3.10.0
env:
- configuration=Debug
- configuration=Release
solution: Rational.sln
sudo: required
install:
- nuget restore Rational.sln
script:
- xbuild /p:Configuration=$configuration Rational.sln
after_success:
- nuget install NUnit.ConsoleRunner -Version 3.4.1 -OutputDirectory tools
- nuget install OpenCover -Version 4.6.519 -OutputDirectory tools
- chmod u+x ./tools/OpenCover.4.6.519/tools/OpenCover.Console.exe
- ./tools/OpenCover.4.6.519/tools/OpenCover.Console.exe -target:./tools/NUnit.ConsoleRunner.3.4.1/tools/nunit3-console.exe -targetargs:"./RationalNumberTest/bin/${configuration}/RationalNumberTest.dll /nolog /noshadow" -register:user
- bash <(curl -s https://codecov.io/bash)
after_script:
- mono ./RationalNumberExample/bin/${configuration}/RationalNumberExample.exe
- nuget pack ./RationalNumber/RationalNumber.csproj
notifications:
email: false