.travis.yml 481 B

123456789101112131415161718192021222324
  1. language: go
  2. go:
  3. - 1.7.x
  4. - 1.8.x
  5. - 1.9.x
  6. - master
  7. gobuild_args: -tags=integration -race
  8. sudo: required
  9. services:
  10. - docker
  11. before_install:
  12. - docker pull jcmturner/gokrb5:dns
  13. - docker run -d -h kdc.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
  14. before_script:
  15. - sudo sed -i 's/nameserver .*/nameserver 127.0.0.1/g' /etc/resolv.conf
  16. env:
  17. - DNSUTILS_OVERRIDE_NS="127.0.0.1:53"