-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
40 lines (37 loc) · 941 Bytes
/
.drone.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
kind: pipeline
name: default
steps:
- name: test
image: golang:latest
environment:
LDAP_SERVER: "openldap"
LDAP_PORT: "636"
LDAP_BIND_DN: "cn=admin,dc=planetexpress,dc=com"
LDAP_BIND_PASS: "GoodNewsEveryone"
LDAP_USER_BASE_DN: "ou=people,dc=planetexpress,dc=com"
LDAP_USER_SEARCH_ATTR: "cn"
LDAP_GROUP_BASE_DN: "ou=people,dc=planetexpress,dc=com"
LDAP_GROUP_OBJECT_CLASS: "Group"
LDAP_GROUP_SEARCH_ATTR: "member"
LDAP_GROUP_SEARCH_FULL: "false"
LDAP_TEST_USER: "Hubert J. Farnsworth"
LDAP_TEST_PASSWORD: "professor"
commands:
- sleep 5
- go version
- go env
- go test -v -coverprofile=coverage.txt -covermode=atomic ./...
- cat ./coverage.txt
- ls -la /drone/src
- name: coverage
image: plugins/codecov
settings:
token:
from_secret: CODECOV_TOKEN
files:
- coverage.txt
services:
- name: openldap
image: gitea/test-openldap:latest
ports:
- 636