Merge pull request #1786 from Roasbeef/golang-1.1
build+docs: bump to golang 1.11
This commit is contained in:
commit
3fda1029c0
17
.travis.yml
17
.travis.yml
@ -1,17 +1,20 @@
|
|||||||
language: go
|
language: go
|
||||||
go:
|
matrix:
|
||||||
- "1.9.4"
|
include:
|
||||||
- "1.10"
|
- go: "1.11"
|
||||||
|
env: RACE=FALSE USE_LINT=TRUE
|
||||||
|
- go: "1.11"
|
||||||
|
env: RACE=FALSE USE_LINT=TRUE
|
||||||
|
- go: "1.10"
|
||||||
|
env: RACE=TRUE USE_LINT=FALSE
|
||||||
|
- go: "1.10"
|
||||||
|
env: RACE=FALSE USE_LINT=FALSE
|
||||||
sudo: required
|
sudo: required
|
||||||
install:
|
install:
|
||||||
- sudo add-apt-repository -y ppa:bitcoin/bitcoin -y
|
- sudo add-apt-repository -y ppa:bitcoin/bitcoin -y
|
||||||
- sudo apt-get update -q
|
- sudo apt-get update -q
|
||||||
- sudo apt-get install bitcoind -y
|
- sudo apt-get install bitcoind -y
|
||||||
- export PATH=$PATH:$PWD/linux-amd64/
|
- export PATH=$PATH:$PWD/linux-amd64/
|
||||||
env:
|
|
||||||
matrix:
|
|
||||||
- RACE=false
|
|
||||||
- RACE=true
|
|
||||||
script:
|
script:
|
||||||
- export PATH=$PATH:$GOPATH/bin
|
- export PATH=$PATH:$GOPATH/bin
|
||||||
- make travis
|
- make travis
|
||||||
|
13
Makefile
13
Makefile
@ -185,16 +185,25 @@ flake-unit:
|
|||||||
# TRAVIS
|
# TRAVIS
|
||||||
# ======
|
# ======
|
||||||
|
|
||||||
ifeq ($(RACE), false)
|
ifeq ($(RACE)$(USE_LINT), FALSETRUE)
|
||||||
travis: dep lint build itest unit-cover $(GOVERALLS_BIN)
|
travis: dep lint build itest unit-cover $(GOVERALLS_BIN)
|
||||||
@$(call print, "Sending coverage report.")
|
@$(call print, "Sending coverage report.")
|
||||||
$(GOVERALLS_BIN) -coverprofile=profile.cov -service=travis-ci
|
$(GOVERALLS_BIN) -coverprofile=profile.cov -service=travis-ci
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(RACE), true)
|
ifeq ($(RACE)$(USE_LINT), FALSEFALSE)
|
||||||
|
travis: dep build itest unit-cover $(GOVERALLS_BIN)
|
||||||
|
@$(call print, "Sending coverage report.")
|
||||||
|
$(GOVERALLS_BIN) -coverprofile=profile.cov -service=travis-ci
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(RACE)$(USE_LINT), TRUETRUE)
|
||||||
travis: dep lint btcd unit-race
|
travis: dep lint btcd unit-race
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(RACE)$(USE_LINT), TRUEFALSE)
|
||||||
|
travis: dep btcd unit-race
|
||||||
|
endif
|
||||||
|
|
||||||
# =========
|
# =========
|
||||||
# UTILITIES
|
# UTILITIES
|
||||||
|
@ -7,14 +7,14 @@
|
|||||||
* **Go:** `lnd` is written in Go. To install, run one of the following commands:
|
* **Go:** `lnd` is written in Go. To install, run one of the following commands:
|
||||||
|
|
||||||
|
|
||||||
**Note**: The minimum version of Go supported is Go 1.9. We recommend that
|
**Note**: The minimum version of Go supported is Go 1.10. We recommend that
|
||||||
users use the latest version of Go, which at the time of writing is
|
users use the latest version of Go, which at the time of writing is
|
||||||
[`1.10`](https://blog.golang.org/go1.10).
|
[`1.11`](https://blog.golang.org/go1.11).
|
||||||
|
|
||||||
|
|
||||||
On Linux:
|
On Linux:
|
||||||
```
|
```
|
||||||
sudo apt-get install golang-1.10-go
|
sudo apt-get install golang-1.11-go
|
||||||
```
|
```
|
||||||
> Note that golang-1.10-go puts binaries in /usr/lib/go-1.10/bin. If you want them on your PATH, you need to make that change yourself. Alternatively, you can run:
|
> Note that golang-1.10-go puts binaries in /usr/lib/go-1.10/bin. If you want them on your PATH, you need to make that change yourself. Alternatively, you can run:
|
||||||
```
|
```
|
||||||
|
@ -53,7 +53,7 @@ func (c *concurrentTester) Fatalf(format string, args ...interface{}) {
|
|||||||
c.mtx.Lock()
|
c.mtx.Lock()
|
||||||
defer c.mtx.Unlock()
|
defer c.mtx.Unlock()
|
||||||
|
|
||||||
c.T.Fatalf(format, args)
|
c.T.Fatalf(format, args...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// messageToString is used to produce less spammy log messages in trace mode by
|
// messageToString is used to produce less spammy log messages in trace mode by
|
||||||
|
Loading…
Reference in New Issue
Block a user