forked from CyberSource/cybersource-rest-samples-csharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
25 lines (20 loc) · 1.03 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
os:
windows
language:
cpp
before_install:
- powershell -c "Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope LocalMachine"
- powershell -c "Import-Module PackageManagement; Install-PackageProvider Nuget"
- powershell -c "Import-Module PackageManagement; Register-PackageSource -Name NuGetOrg -Location https://www.nuget.org/api/v2 -ProviderName NuGet"
- powershell -c "Import-Module PackageManagement; Install-Package -Source NuGetOrg -Name NuGet.CommandLine -Force -ExcludeVersion -Destination C:\tools"
- export PATH="c:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin":$PATH
- export PATH="c:\tools\NuGet.CommandLine\tools":$PATH
install:
- choco install dotnetcore-sdk
- nuget restore cybersource-rest-samples-csharp.sln
before_script:
- MSBuild.exe cybersource-rest-samples-csharp.sln
script:
- ./bin/Debug/net461/SampleCode.exe RunAll
- dotnet build cybersource-rest-samples-netcore.sln
- dotnet bin/Debug/netcoreapp3.1/SampleCodeNetCore.dll RunAll