-
Notifications
You must be signed in to change notification settings - Fork 41
/
.travis.yml
59 lines (54 loc) · 1.84 KB
/
.travis.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
language: go
go:
- "1.10.x"
- "1.11.x"
- "1.12.5"
- "1.12.x"
- "1.13.x"
- "1.14.x"
- "1.15.x"
- "1.x"
- "master"
notifications:
irc:
if: repo = namecoin/ncdns
channels:
- "irc.oftc.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 ./...
- GOXSYS_BRANCH=master
# goxsys bug for Go 1.11 and earlier: https://github.com/golang/go/issues/34742
- if [[ "$(go version)" =~ go1.[56789] ]]; then GOXSYS_BRANCH=release-branch.go1.13; fi
- if [[ "$(go version)" =~ go1.1[01] ]]; then GOXSYS_BRANCH=release-branch.go1.13; fi
- pushd $(go env GOPATH)/src/golang.org/x/sys; git checkout $GOXSYS_BRANCH; popd
- GOXNET_BRANCH=master
# goxnet dropped support for old go stdlib
- if [[ "$(go version)" =~ go1.[56789] ]]; then GOXNET_BRANCH=release-branch.go1.12; fi
- if [[ "$(go version)" =~ go1.1[01] ]]; then GOXNET_BRANCH=release-branch.go1.12; fi
- pushd $(go env GOPATH)/src/golang.org/x/net; git checkout $GOXNET_BRANCH; popd
- 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