forked from dotnet/corefx
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
62 lines (62 loc) · 6.57 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
language: csharp
sudo: required
dist: trusty
mono: none
dotnet: 2.0.3
before_script:
- sudo apt install lsb lsb-core alien
- cd ./cspTools
- tar -xf linux_amd64_deb.tar
- sudo ./linux_amd64_deb/install.sh
- sudo /opt/cprocsp/sbin/amd64/cpconfig -license -set "5050C-90030-05B5W-LTHVH-PFPU2"
#install container
- mkdir -p /var/opt/cprocsp/keys/travis/
- cp -r ./G2001256.000 /var/opt/cprocsp/keys/travis/
- cp -r ./G2012256.001 /var/opt/cprocsp/keys/travis/
- cp -r ./G2012512.000 /var/opt/cprocsp/keys/travis/
- /opt/cprocsp/bin/amd64/csptest -absorb -certs -provtype 75 -provider "Crypto-Pro GOST R 34.10-2001 Cryptographic Service Provider" -pattern "G2001256.000"
- /opt/cprocsp/bin/amd64/csptest -absorb -certs -provtype 80 -pattern "G2012256"
- /opt/cprocsp/bin/amd64/csptest -absorb -certs -provtype 81 -pattern "G2012512"
- /opt/cprocsp/bin/amd64/csptest -keyset -enum_c -verifyc -uniq
- /opt/cprocsp/bin/amd64/csptest -keyset -enum_c -verifyc -fqcn
# getting patched nuget packages with gost support
- git clone https://github.com/CryptoProLLC/NetStandard.Library
- mkdir -p ~/.nuget/packages/netstandard.library
- cp -r ./NetStandard.Library/nugetReady/netstandard.library ~/.nuget/packages/
# disable warnings
- sudo sed -i '/[Parameters]/a warning_time_gen_2001=ll:9223372036854775807' /etc/opt/cprocsp/config64.ini
- sudo sed -i '/[Parameters]/a warning_time_sign_2001=ll:9223372036854775807' /etc/opt/cprocsp/config64.ini
- cd ..
- ./build.sh -clean
script:
- ./build.sh
- .dotnet/dotnet msbuild src/System.Security.Cryptography.Csp/tests/ /t:BuildAndTest "/p:XunitOptions=-class System.Security.Cryptography.Encryption.Gost3411.Tests.Gost3411CryptoServiceProviderTests" /p:ForceRunTests=true
- .dotnet/dotnet msbuild src/System.Security.Cryptography.Algorithms/tests/ /t:BuildAndTest "/p:XunitOptions=-class System.Security.Cryptography.Hashing.Algorithms.Tests.Gost3411Tests" /p:ForceRunTests=true
- .dotnet/dotnet msbuild src/System.Security.Cryptography.Algorithms/tests/ /t:BuildAndTest "/p:XunitOptions=-class System.Security.Cryptography.Hashing.Algorithms.Tests.Gost3411_2012_256Tests" /p:ForceRunTests=true
- .dotnet/dotnet msbuild src/System.Security.Cryptography.Algorithms/tests/ /t:BuildAndTest "/p:XunitOptions=-class System.Security.Cryptography.Hashing.Algorithms.Tests.Gost3411_2012_512Tests" /p:ForceRunTests=true
- .dotnet/dotnet msbuild src/System.Security.Cryptography.Algorithms/tests/ /t:BuildAndTest "/p:XunitOptions=-class System.Security.Cryptography.Hashing.Algorithms.Tests.HMACGost3411Tests" /p:ForceRunTests=true
- .dotnet/dotnet msbuild src/System.Security.Cryptography.Algorithms/tests/ /t:BuildAndTest "/p:XunitOptions=-class System.Security.Cryptography.Hashing.Algorithms.Tests.HMACGost3411_2012_256Tests" /p:ForceRunTests=true
- .dotnet/dotnet msbuild src/System.Security.Cryptography.Algorithms/tests/ /t:BuildAndTest "/p:XunitOptions=-class System.Security.Cryptography.Hashing.Algorithms.Tests.MD5Tests" /p:ForceRunTests=true
- .dotnet/dotnet msbuild src/System.Security.Cryptography.Algorithms/tests/ /t:BuildAndTest "/p:XunitOptions=-class System.Security.Cryptography.Hashing.Algorithms.Tests.SHA1Tests" /p:ForceRunTests=true
- .dotnet/dotnet msbuild src/System.Security.Cryptography.Algorithms/tests/ /t:BuildAndTest "/p:XunitOptions=-class System.Security.Cryptography.Hashing.Algorithms.Tests.SHA256Tests" /p:ForceRunTests=true
- .dotnet/dotnet msbuild src/System.Security.Cryptography.Algorithms/tests/ /t:BuildAndTest "/p:XunitOptions=-class System.Security.Cryptography.Hashing.Algorithms.Tests.SHA384Tests" /p:ForceRunTests=true
- .dotnet/dotnet msbuild src/System.Security.Cryptography.Algorithms/tests/ /t:BuildAndTest "/p:XunitOptions=-class System.Security.Cryptography.Hashing.Algorithms.Tests.SHA512Tests" /p:ForceRunTests=true
- .dotnet/dotnet msbuild src/System.Security.Cryptography.Algorithms/tests/ /t:BuildAndTest "/p:XunitOptions=-class System.Security.Cryptography.Hashing.Algorithms.Tests.HMACMD5Tests" /p:ForceRunTests=true
- .dotnet/dotnet msbuild src/System.Security.Cryptography.Algorithms/tests/ /t:BuildAndTest "/p:XunitOptions=-class System.Security.Cryptography.Hashing.Algorithms.Tests.HMACSHA1Tests" /p:ForceRunTests=true
- .dotnet/dotnet msbuild src/System.Security.Cryptography.Algorithms/tests/ /t:BuildAndTest "/p:XunitOptions=-class System.Security.Cryptography.Hashing.Algorithms.Tests.HMACSHA256Tests" /p:ForceRunTests=true
- .dotnet/dotnet msbuild src/System.Security.Cryptography.Algorithms/tests/ /t:BuildAndTest "/p:XunitOptions=-class System.Security.Cryptography.Hashing.Algorithms.Tests.HMACSHA384Tests" /p:ForceRunTests=true
- .dotnet/dotnet msbuild src/System.Security.Cryptography.Algorithms/tests/ /t:BuildAndTest "/p:XunitOptions=-class System.Security.Cryptography.Hashing.Algorithms.Tests.HMACSHA512Tests" /p:ForceRunTests=true
- .dotnet/dotnet msbuild src/System.Security.Cryptography.Algorithms/tests/ /t:BuildAndTest "/p:XunitOptions=-class System.Security.Cryptography.Hashing.Algorithms.Tests.ReusabilityTests" /p:ForceRunTests=true
- .dotnet/dotnet msbuild src/System.Security.Cryptography.Csp/tests/ /t:BuildAndTest "/p:XunitOptions=-class System.Security.Cryptography.Encryption.Gost3410.Tests.Gost3410CryptoServiceProviderTests" /p:ForceRunTests=true
- .dotnet/dotnet msbuild src/System.Security.Cryptography.Csp/tests/ /t:BuildAndTest "/p:XunitOptions=-class System.Security.Cryptography.Encryption.Gost3410.Tests.Gost3410_2012_256CryptoServiceProviderTests" /p:ForceRunTests=true
- .dotnet/dotnet msbuild src/System.Security.Cryptography.Csp/tests/ /t:BuildAndTest "/p:XunitOptions=-class System.Security.Cryptography.Encryption.Gost3410.Tests.Gost3410_2012_512CryptoServiceProviderTests" /p:ForceRunTests=true
- .dotnet/dotnet msbuild src/System.Security.Cryptography.Csp/tests/ /t:BuildAndTest "/p:XunitOptions=-class System.Security.Cryptography.Csp.Tests.Gost28147CryptoServiceProviderTest" /p:ForceRunTests=true
- .dotnet/dotnet msbuild src/System.Security.Cryptography.Xml/tests/ /t:BuildAndTest "/p:XunitOptions=-class System.Security.Cryptography.Xml.Tests.GostSignedXmlTest" /p:ForceRunTests=true
- .dotnet/dotnet msbuild src/Common/tests/ /t:BuildAndTest /p:ForceRunTests=true
#- .dotnet/dotnet msbuild /t:BuildAndTest src/System.Security.Cryptography.X509Certificates/tests/
#- .dotnet/dotnet msbuild /t:BuildAndTest src/System.Security.Cryptography.Pkcs/tests/
#- .dotnet/dotnet msbuild /t:BuildAndTest src/System.Security.Cryptography.Xml/tests/
notifications:
email:
on_success: never # default: change
on_failure: never # default: always