#travis_retry go get github.com/tcnksm/ghr github.com/mitchellh/gox gopkg.in/alecthomas/gometalinter.v2 github.com/miekg/exdns/q github.com/namecoin/dns-prop279
travis_retry go get github.com/tcnksm/ghr github.com/mitchellh/gox gopkg.in/alecthomas/gometalinter.v2
go test -v ./...
GOX_TAGS=""
if [ "${NO_NAMECOIN_TLS}" = "1" ]; then
GOX_TAGS="no_namecoin_tls"
fi
go test -tags "${GOX_TAGS}" -v ./...
RESULT=$?
echo Done tests with exit code $RESULT
@ -12,6 +17,9 @@ if [ "$RESULT" != "0" ]; then
return $RESULT
fi
# Static analysis for TLS mode will cover non-TLS mode as well.
if [ "${NO_NAMECOIN_TLS}" != "1" ]; then
# Static analysis
gometalinter.v2 --install
@ -63,6 +71,8 @@ gometalinter.v2 --enable-all \
./...
STATICRESULT2=$?
fi
# Test cross-compilation. The binaries produced are also used for release
# upload in after_success if this is a release tag.
// in some cases, namely for Alias and Translate, the empty string is represented as "=".
// Therefore when qualifying names in a Value yourself you must check if the
// input string is "=" and if so, replace it with "" first.
typeValuestruct{
IP[]net.IP
IP6[]net.IP
NS[]string
Aliasstring
HasAliasbool// True if Alias was specified. Necessary as "" is a valid relative alias.
Translatestring
HasTranslatebool// True if Translate was specified. Necessary as "" is a valid relative value for Translate.
DS[]*dns.DS
TXT[][]string
SRV[]*dns.SRV
Hostmasterstring// "hostmaster@example.com"
MX[]*dns.MX// header name is left blank
TLSA[]*dns.TLSA
TLSAGenerated[]x509.Certificate// Certs can be dehydrated in the blockchain, they will be put here without SAN values. SAN must be filled in before use.
Mapmap[string]*Value// may contain and "*", will not contain ""
typevalueWithoutTLSAstruct{
IP[]net.IP
IP6[]net.IP
NS[]string
Aliasstring
HasAliasbool// True if Alias was specified. Necessary as "" is a valid relative alias.
Translatestring
HasTranslatebool// True if Translate was specified. Necessary as "" is a valid relative value for Translate.
DS[]*dns.DS
TXT[][]string
SRV[]*dns.SRV
Hostmasterstring// "hostmaster@example.com"
MX[]*dns.MX// header name is left blank
TLSA[]*dns.TLSA
Mapmap[string]*Value// may contain and "*", will not contain ""
// set if the value is at the top level (alas necessary for relname interpretation)
IsTopLevelbool
@ -249,45 +245,6 @@ func (v *Value) appendSRVs(out []dns.RR, suffix, apexSuffix string) ([]dns.RR, e
TLSAGenerated[]x509.Certificate// Certs can be dehydrated in the blockchain, they will be put here without SAN values. SAN must be filled in before use.