2
0
mirror of https://github.com/namecoin/ncdns synced 2024-11-16 00:13:01 +00:00
ncdns/.travis.yml
2019-10-04 03:58:12 +00:00

54 lines
1.6 KiB
YAML

language: go
go:
- "1.10.x"
- "1.11.x"
- "1.12.5"
- "1.12.x"
- "1.x"
- "master"
notifications:
irc:
channels:
- "chat.freenode.net#namecoin-dev"
on_success: never
addons:
apt:
packages:
- libcap-dev
- gcc-multilib
- libc6-dev:i386
- libcap-dev:i386
sudo: false
install:
- if [[ "${NO_NAMECOIN_TLS}" = 1 ]]; then TAGS="no_namecoin_tls"; fi
- if [[ "${NO_NAMECOIN_TLS}" = 0 ]]; then TAGS=""; fi
- go get -tags "$TAGS" -d -v -t ./...
- X509_BRANCH=master
- if [[ "$(go version)" =~ go1.[5678] ]]; then X509_BRANCH=go1.6; fi
- if [[ "$(go version)" =~ go1.9 ]]; then X509_BRANCH=go1.9; fi
- if [[ "$(go version)" =~ go1.10 ]]; then X509_BRANCH=go1.10; fi
- if [[ "$(go version)" =~ go1.11 ]]; then X509_BRANCH=go1.11; fi
- if [[ "$(go version)" =~ go1.12 ]]; then X509_BRANCH=go1.12; fi
- pushd $(go env GOPATH)/src/github.com/namecoin/x509-signature-splice; git checkout $X509_BRANCH; popd
- go generate -v github.com/namecoin/x509-signature-splice/...
- go get -tags "$TAGS" -v -t ./...
- env GOOS=windows GOARCH=amd64 go get -tags "$TAGS" -d -v -t ./...
script:
- source ./.travis/script
after_success:
- source ./.travis/after_success
env:
global:
# GITHUB_TOKEN for automatic releases
- secure: "at1oJs7ib7glx3W+zk+OkT041LdknVXirIhN403CIihVUrlOhODY7yCTgvF4Rk0jYBJiT35Q2qxpgfWF2qGnsNsQmjG3ydDWQDCepDc/CgXfLyoiSTJK5vTK72dYWTVsBTycXbj1CbSy2X2ah/KWjc4RcgZ67ER7mDpRU5nFeow="
# Set this to the Go version to use for releases (must appear in version list above).
- RELEASE_GO_VERSION="1.12.5"
matrix:
- NO_NAMECOIN_TLS=1
- NO_NAMECOIN_TLS=0