-
Notifications
You must be signed in to change notification settings - Fork 39
/
.travis.yml
59 lines (58 loc) · 1.44 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
language: csharp
mono: none
dotnet: 2.1.805
dist: bionic
addons:
hosts:
- example
- example.com
apt:
packages:
- ldap-utils
- slapd
- sasl2-bin
- ca-certificates
- libsasl2-2
- curl
- libsasl2-modules
- libsasl2-modules-db
- libsasl2-modules-gssapi-mit
- libsasl2-modules-ldap
- libsasl2-modules-otp
- libsasl2-modules-sql
- openssl
- slapd
- krb5-kdc-ldap
- dotnet-sdk-3.1
homebrew:
packages:
- openssl
- openldap
cask:
- dotnet-sdk
update: true
before_script:
- mkdir -p /tmp/slapd/certs
- cp .test_config/server.crt /tmp/slapd/certs/
- cp .test_config/server.key /tmp/slapd/certs/
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then export PATH=/usr/libexec:$PATH ; fi
- slapd -f .test_config/slapd."$TRAVIS_OS_NAME".conf -h "ldap://localhost:4389 ldaps://localhost:4636 ldapi://%2Ftmp%2Fslapd%2Fslapdunix" -d 0 &
- sleep 6
- ldapadd -h localhost:4389 -D cn=admin,dc=example,dc=com -w test -f .test_config/base.ldif
install:
- dotnet restore
script:
- dotnet build LdapForNet.sln
- dotnet test ./LdapForNet.Tests/
- dotnet pack
deploy:
skip_cleanup: true
cleanup: false
provider: script
script: if [ "$TRAVIS_OS_NAME" = "linux" ]; then dotnet nuget push ./LdapForNet/bin/Debug/LdapForNet*.nupkg -k $NUGET_API_KEY -s $NUGET_SOURCE ; fi
on:
tags: true
all_branches: true
os:
- osx
- linux