forked from MetacoSA/NBitcoin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (29 loc) · 1.21 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
31
32
33
34
35
language: csharp
# ASF is based on .NET Core platform, we're not building with Mono
dotnet: 3.1
mono: none
# We can save bandwidth by limiting git clone to only last 10 commits
git:
depth: 10
notifications:
email: false
branches:
only:
- master
matrix:
include:
- os: linux
dist: bionic
env: AdditionalDefineConstants=SECP256K1_VERIFY
- os: linux
dist: bionic
env: TargetFrameworkOverride=netstandard2.0
- os: osx
dotnet: 3.1.100 # For OSX, we need absolute dotnet version until https://github.com/dotnet/core-setup/issues/4187 is resolved
osx_image: xcode11.2
before_install:
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get -qq update; fi
- if [ $TRAVIS_OS_NAME = osx ]; then ulimit -S -n 4096; fi
script:
- dotnet build ./NBitcoin.Tests/NBitcoin.Tests.csproj /p:TargetFrameworkOverride=$TargetFrameworkOverride /p:AdditionalDefineConstants=$AdditionalDefineConstants -c Release -f netcoreapp3.1
- dotnet test --no-build -v n -c Release -f netcoreapp3.1 ./NBitcoin.Tests/NBitcoin.Tests.csproj --filter "RestClient=RestClient|RPCClient=RPCClient|Protocol=Protocol|Core=Core|UnitTest=UnitTest|Altcoins=Altcoins" -p:ParallelizeTestCollections=false < /dev/null