a2bc585afe
The go compile command in go 1.13 needs -p main instead of -p $pkgPath when compiling binaries. This also works for older go releases. Also turn on travis for go 1.13. Change-Id: I45ce185aa44cfa01a7933cc6e52290a85c851641
27 lines
462 B
YAML
27 lines
462 B
YAML
language: go
|
|
|
|
go:
|
|
- "1.10"
|
|
- "1.11"
|
|
- "1.12"
|
|
- "1.13"
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/ninjabin
|
|
|
|
install:
|
|
- ./.travis.install-ninja.sh
|
|
- export PATH=$PATH:~/ninjabin
|
|
|
|
before_script:
|
|
- source .travis.fix-fork.sh
|
|
|
|
script:
|
|
- export GOROOT=$(go env GOROOT)
|
|
- ./.travis.gofmt.sh
|
|
- go test ./...
|
|
- go test -race -short ./...
|
|
- ./tests/test.sh
|
|
- ./tests/test_tree_tests.sh
|
|
- ./tests/test_tree_tests.sh -t
|