forked from avadev/AvaTax-REST-V2-DotNet-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
24 lines (24 loc) · 1.15 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
language: csharp
solution: Avalara.AvaTax.netstandard11.sln
dist: trusty
sudo: required
dotnet: 1.0.1
mono: latest
install:
- sudo apt-get install -y gtk-sharp2
- nuget restore Avalara.AvaTax.Net20.sln
- nuget restore Avalara.AvaTax.net45.sln
- dotnet restore Avalara.AvaTax.netstandard11.sln
- nuget install NUnit -Version 3.6.0 -OutputDirectory nunit
- nuget install NUnit.Console -Version 3.6.0 -OutputDirectory testrunner
script:
- xbuild Avalara.AvaTax.Net20.sln
- xbuild Avalara.AvaTax.net45.sln
- dotnet build Avalara.AvaTax.netstandard11.sln
- mono ./testrunner/NUnit.ConsoleRunner.3.6.0/tools/nunit3-console.exe ./tests/net20/bin/Debug/Tests.Avalara.AvaTax.RestClient.net20.dll
- mono ./testrunner/NUnit.ConsoleRunner.3.6.0/tools/nunit3-console.exe ./tests/net45/bin/Debug/Tests.Avalara.AvaTax.net45.dll
- dotnet test ./tests/netstandard/Tests.Avalara.AvaTax.netstandard11.csproj
after_success:
- echo "Branch is $TRAVIS_BRANCH"
- echo "Pull Request is $TRAVIS_PULL_REQUEST_BRANCH"
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST_BRANCH" == "" ]; then echo "Successfully merged to master - take further actions here"; fi