File tree 25 files changed +30
-10
lines changed
25 files changed +30
-10
lines changed Original file line number Diff line number Diff line change 7
7
8
8
language : go
9
9
go :
10
+ - 1.17.x
10
11
- 1.16.x
11
- - 1.15.x
12
12
addons :
13
13
apt :
14
14
packages :
17
17
- GO111MODULE=off
18
18
go_import_path : github.com/nats-io/nats-server
19
19
install :
20
- - go get github.com/nats-io/nats.go/
21
- - go get github.com/nats-io/nkeys
22
- - go get github.com/nats-io/jwt
23
- - go get -u honnef.co/go/tools/cmd/staticcheck
24
- - go get -u github.com/client9/misspell/cmd/misspell
20
+ -
GO111MODULE=on go get honnef.co/go/tools/cmd/[email protected]
21
+ -
GO111MODULE=on go get github.com/client9/misspell/cmd/[email protected]
25
22
before_script :
26
23
- GO_LIST=$(go list ./...)
27
24
- go build
@@ -33,10 +30,10 @@ script:
33
30
- set -e
34
31
- if [[ $TRAVIS_TAG ]]; then go test -v -run=TestVersionMatchesTag ./server; fi
35
32
- if [[ ! $TRAVIS_TAG ]]; then go test -v -run=TestNoRace --failfast -p=1 -timeout 20m ./...; fi
36
- - if [[ ! $TRAVIS_TAG ]]; then if [[ "$TRAVIS_GO_VERSION" =~ 1.15 ]]; then ./scripts/cov.sh TRAVIS; else go test -v -race -p=1 --failfast -timeout 20m ./...; fi; fi
33
+ - if [[ ! $TRAVIS_TAG ]]; then if [[ "$TRAVIS_GO_VERSION" =~ 1.16 ]]; then ./scripts/cov.sh TRAVIS; else go test -v -race -p=1 --failfast -timeout 20m ./...; fi; fi
37
34
- set +e
38
35
after_success :
39
- - if [[ ! $TRAVIS_TAG ]]; then if [[ "$TRAVIS_GO_VERSION" =~ 1.15 ]]; then $HOME/gopath/bin/goveralls -coverprofile=acc.out -service travis-ci; fi; fi
36
+ - if [[ ! $TRAVIS_TAG ]]; then if [[ "$TRAVIS_GO_VERSION" =~ 1.16 ]]; then $HOME/gopath/bin/goveralls -coverprofile=acc.out -service travis-ci; fi; fi
40
37
41
38
deploy :
42
39
provider : script
Original file line number Diff line number Diff line change 11
11
// See the License for the specific language governing permissions and
12
12
// limitations under the License.
13
13
14
+ //go:build gofuzz
14
15
// +build gofuzz
15
16
16
17
package conf
Original file line number Diff line number Diff line change 11
11
// See the License for the specific language governing permissions and
12
12
// limitations under the License.
13
13
14
+ //go:build !windows
14
15
// +build !windows
15
16
16
17
package logger
Original file line number Diff line number Diff line change 11
11
// See the License for the specific language governing permissions and
12
12
// limitations under the License.
13
13
14
+ //go:build !windows
14
15
// +build !windows
15
16
16
17
package logger
Original file line number Diff line number Diff line change 11
11
// See the License for the specific language governing permissions and
12
12
// limitations under the License.
13
13
14
+ //go:build windows
14
15
// +build windows
15
16
16
17
package logger
Original file line number Diff line number Diff line change 11
11
// See the License for the specific language governing permissions and
12
12
// limitations under the License.
13
13
14
- // + build !windows
15
- // +build !openbsd
14
+ //go: build !windows && !openbsd
15
+ // +build !windows,! openbsd
16
16
17
17
package server
18
18
Original file line number Diff line number Diff line change 11
11
// See the License for the specific language governing permissions and
12
12
// limitations under the License.
13
13
14
+ //go:build openbsd
14
15
// +build openbsd
15
16
16
17
package server
Original file line number Diff line number Diff line change 11
11
// See the License for the specific language governing permissions and
12
12
// limitations under the License.
13
13
14
+ //go:build windows
14
15
// +build windows
15
16
16
17
package server
Original file line number Diff line number Diff line change 11
11
// See the License for the specific language governing permissions and
12
12
// limitations under the License.
13
13
14
+ //go:build gofuzz
14
15
// +build gofuzz
15
16
16
17
package server
Original file line number Diff line number Diff line change 11
11
// See the License for the specific language governing permissions and
12
12
// limitations under the License.
13
13
14
+ //go:build !race
14
15
// +build !race
15
16
16
17
package server
Original file line number Diff line number Diff line change 11
11
// See the License for the specific language governing permissions and
12
12
// limitations under the License.
13
13
14
+ //go:build !amd64
14
15
// +build !amd64
15
16
16
17
package pse
Original file line number Diff line number Diff line change 11
11
// See the License for the specific language governing permissions and
12
12
// limitations under the License.
13
13
14
+ //go:build rumprun
14
15
// +build rumprun
15
16
16
17
package pse
Original file line number Diff line number Diff line change 11
11
// See the License for the specific language governing permissions and
12
12
// limitations under the License.
13
13
14
+ //go:build windows
14
15
// +build windows
15
16
16
17
package pse
Original file line number Diff line number Diff line change 11
11
// See the License for the specific language governing permissions and
12
12
// limitations under the License.
13
13
14
+ //go:build windows
14
15
// +build windows
15
16
16
17
package pse
Original file line number Diff line number Diff line change 11
11
// See the License for the specific language governing permissions and
12
12
// limitations under the License.
13
13
14
+ //go:build !windows
14
15
// +build !windows
15
16
16
17
package server
Original file line number Diff line number Diff line change 11
11
// See the License for the specific language governing permissions and
12
12
// limitations under the License.
13
13
14
+ //go:build !windows
14
15
// +build !windows
15
16
16
17
package server
Original file line number Diff line number Diff line change 11
11
// See the License for the specific language governing permissions and
12
12
// limitations under the License.
13
13
14
+ //go:build !windows
14
15
// +build !windows
15
16
16
17
package server
Original file line number Diff line number Diff line change 11
11
// See the License for the specific language governing permissions and
12
12
// limitations under the License.
13
13
14
+ //go:build !windows
14
15
// +build !windows
15
16
16
17
package server
Original file line number Diff line number Diff line change 11
11
// See the License for the specific language governing permissions and
12
12
// limitations under the License.
13
13
14
+ //go:build freebsd || openbsd || dragonfly || netbsd
14
15
// +build freebsd openbsd dragonfly netbsd
15
16
16
17
package sysmem
Original file line number Diff line number Diff line change 11
11
// See the License for the specific language governing permissions and
12
12
// limitations under the License.
13
13
14
+ //go:build darwin
14
15
// +build darwin
15
16
16
17
package sysmem
Original file line number Diff line number Diff line change 11
11
// See the License for the specific language governing permissions and
12
12
// limitations under the License.
13
13
14
+ //go:build linux
14
15
// +build linux
15
16
16
17
package sysmem
Original file line number Diff line number Diff line change 11
11
// See the License for the specific language governing permissions and
12
12
// limitations under the License.
13
13
14
+ //go:build windows
14
15
// +build windows
15
16
16
17
package sysmem
Original file line number Diff line number Diff line change 11
11
// See the License for the specific language governing permissions and
12
12
// limitations under the License.
13
13
14
+ //go:build darwin || freebsd || openbsd || dragonfly || netbsd
14
15
// +build darwin freebsd openbsd dragonfly netbsd
15
16
16
17
package sysmem
Original file line number Diff line number Diff line change 11
11
// See the License for the specific language governing permissions and
12
12
// limitations under the License.
13
13
14
+ //go:build !race
14
15
// +build !race
15
16
16
17
package test
Original file line number Diff line number Diff line change 11
11
// See the License for the specific language governing permissions and
12
12
// limitations under the License.
13
13
14
+ //go:build !race
14
15
// +build !race
15
16
16
17
package test
You can’t perform that action at this time.
0 commit comments