1 Star 0 Fork 0

scarpdiem/gokrb5

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 2.22 KB
一键复制 编辑 原始数据 按行查看 历史
Jonathan Turner 提交于 2019-01-01 12:54 . dns gss-tsig
language: go
go:
- 1.9.x
- 1.10.x
- 1.11.x
- master
go_import_path: gopkg.in/jcmturner/gokrb5.v6
sudo: required
services:
- docker
before_install:
- sudo apt-get install -yq krb5-user
- sudo chmod 666 /etc/krb5.conf
- go get -u golang.org/x/lint/golint
- docker run -d -h ns.test.gokrb5 -v /etc/localtime:/etc/localtime:ro -e "TEST_KDC_ADDR=127.0.0.1" -p 53:53 -p 53:53/udp --name dns jcmturner/gokrb5:dns
- docker run -d -h kdc.test.gokrb5 -v /etc/localtime:/etc/localtime:ro -p 88:88 -p 88:88/udp -p 464:464 -p 464:464/udp --name krb5kdc jcmturner/gokrb5:kdc-centos-default
- docker run -d -h kdc.test.gokrb5 -v /etc/localtime:/etc/localtime:ro -p 78:88 -p 78:88/udp --name krb5kdc-old jcmturner/gokrb5:kdc-older
- docker run -d -h kdc.test.gokrb5 -v /etc/localtime:/etc/localtime:ro -p 98:88 -p 98:88/udp --name krb5kdc-latest jcmturner/gokrb5:kdc-latest
- docker run -d -h kdc.resdom.gokrb5 -v /etc/localtime:/etc/localtime:ro -p 188:88 -p 188:88/udp --name krb5kdc-resdom jcmturner/gokrb5:kdc-resdom
- docker run -d -h kdc.test.gokrb5 -v /etc/localtime:/etc/localtime:ro -p 58:88 -p 58:88/udp --name krb5kdc-shorttickets jcmturner/gokrb5:kdc-shorttickets
- docker run -d --add-host host.test.gokrb5:127.0.0.88 -v /etc/localtime:/etc/localtime:ro -p 80:80 -p 443:443 --name gokrb5-http jcmturner/gokrb5:http
before_script:
- GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/)
- sudo sed -i 's/nameserver .*/nameserver 127.0.0.1/g' /etc/resolv.conf
env:
- TEST_KDC_ADDR=127.0.0.1 TEST_HTTP_URL="http://host.test.gokrb5" DNSUTILS_OVERRIDE_NS="127.0.0.1:53" DEBIAN_FRONTEND=noninteractive
script:
- test -z $(gofmt -s -d -l -e $GO_FILES | tee /dev/fd/2 | xargs | sed 's/\s//g') # Fail if a .go file hasn't been formatted with gofmt
- go vet ./... # go vet is the official Go static analyzer
#- golint -set_exit_status $(go list ./...) # golint to be added
- go test -v -race -tags="integration dns" ./... # Run all the tests with the race detector enabled and integration tests
- GOARCH=386 go test -v -tags="integration dns" ./... # 32bit tests
- go run -tags="examples" examples/example.go
addons:
hosts:
- host.test.gokrb5
- kdc.test.gokrb5
- kdc.resdom.gokrb5
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/scarpdiem/gokrb5.git
git@gitee.com:scarpdiem/gokrb5.git
scarpdiem
gokrb5
gokrb5
master

搜索帮助