forked from dsbenghe/Novell.Directory.Ldap.NETStandard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (44 loc) · 1.92 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
sudo: required
dist: trusty
language: csharp
dotnet: 2.1.302
mono: none
stages:
- compile & unit test
- test
env:
- CONFIGURATION=Release NOTHREADS=10 SECURITY=OFF
- CONFIGURATION=Release NOTHREADS=10 SECURITY=SSL
- CONFIGURATION=Release NOTHREADS=10 SECURITY=TLS
- CONFIGURATION=Release NOTHREADS=20 SECURITY=OFF
- CONFIGURATION=Release NOTHREADS=20 SECURITY=SSL
- CONFIGURATION=Release NOTHREADS=20 SECURITY=TLS
- CONFIGURATION=Release NOTHREADS=50 SECURITY=OFF
- CONFIGURATION=Release NOTHREADS=50 SECURITY=SSL
- CONFIGURATION=Release NOTHREADS=50 SECURITY=TLS
addons:
apt:
packages:
- ldap-utils
- gnutls-bin
- ssl-cert
- slapd
before_script:
- chmod ugo+x configure-openldap.sh
- ./configure-openldap.sh
jobs:
include:
- stage: compile & unit test
env:
- CONFIGURATION=Release
script:
- dotnet restore
- dotnet build --configuration $CONFIGURATION
- export TRANSPORT_SECURITY=OFF; dotnet test --configuration $CONFIGURATION test/Novell.Directory.Ldap.NETStandard.FunctionalTests/Novell.Directory.Ldap.NETStandard.FunctionalTests.csproj
- export TRANSPORT_SECURITY=SSL; dotnet test --configuration $CONFIGURATION test/Novell.Directory.Ldap.NETStandard.FunctionalTests/Novell.Directory.Ldap.NETStandard.FunctionalTests.csproj
- export TRANSPORT_SECURITY=TLS; dotnet test --configuration $CONFIGURATION test/Novell.Directory.Ldap.NETStandard.FunctionalTests/Novell.Directory.Ldap.NETStandard.FunctionalTests.csproj
- dotnet test --configuration $CONFIGURATION test/Novell.Directory.Ldap.NETStandard.UnitTests/Novell.Directory.Ldap.NETStandard.UnitTests.csproj
script:
- dotnet restore
- dotnet build --configuration $CONFIGURATION
- export TRANSPORT_SECURITY=$SECURITY; dotnet run --configuration $CONFIGURATION --project test/Novell.Directory.Ldap.NETStandard.StressTests/Novell.Directory.Ldap.NETStandard.StressTests.csproj $NOTHREADS 30