-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
31 lines (30 loc) · 1.23 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
language: go
go:
- "1.10"
- "1.11"
- "1.12"
- "1.13"
- "1.14"
- tip
install:
- sudo apt-get update -qq
- sudo apt-get install -y debconf-utils
- sudo debconf-set-selections testdata/debconf.txt
- sudo apt-get -y install slapd
- sudo apt-get install -y ldap-utils
- sudo ldapadd -H ldapi:/// -Y EXTERNAL -f testdata/openssh-lpk.ldif
- sudo ldapmodify -H ldapi:/// -Y EXTERNAL -f testdata/rootdnpw.ldif
- sudo sed -i 's;SLAPD_SERVICES="ldap:/// ldapi:///";SLAPD_SERVICES="ldap:/// ldaps:/// ldapi:///";' /etc/default/slapd
- sudo cp -f testdata/ssl-cert-snakeoil.key /etc/ldap/ssl-cert-snakeoil.key
- sudo cp -f testdata/ssl-cert-snakeoil.pem /etc/ldap/ssl-cert-snakeoil.pem
- sudo chown openldap /etc/ldap/ssl-cert-snakeoil.*
- sudo ldapmodify -H ldapi:/// -Y EXTERNAL -f testdata/olcTLSCertificate.ldif
- sudo service slapd restart
- ldapadd -x -h localhost -D cn=admin,dc=example,dc=org -w password -f testdata/ou.ldif
- ldapadd -x -h localhost -D cn=admin,dc=example,dc=org -w password -f testdata/users.ldif
- go get github.com/mattn/goveralls
- go get -d -v ./...
script:
- go test -v -covermode=count -coverprofile=profile.cov
after_success:
- goveralls -coverprofile=profile.cov -service=travis-ci