-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
40 lines (35 loc) · 1.06 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
language: go
# Specify Go versions to test (".x" suffix means latest minor version, "tip" is
# the latest development version)
go:
# - "1.9.x"
# - "1.10.x"
- "1.11.x"
- tip
# Allow failures on development version as they can happen due to third party
# problems. Consider the build successful as soon as all other builds are
# finished.
matrix:
allow_failures:
- go: tip
fast_finish: true
# Also build with enabled module support on versions which support it
include:
- go: "1.11.x"
env: GO111MODULE=on
- go: tip
env: GO111MODULE=on
# Install all dependencies (including dependencies of tests) without installing
# binaries.
install:
-
# - go get -d -t -v ./...
# Check if gofmt or go vet report any errors, run all tests with the race
# detector enabled, then build all examples to make sure they still compile.
script:
- diff -u <(echo -n) <(gofmt -d .)
- go tool vet .
- go test -race -v ./...
- go build -v $(go list ./**/_example)
# Force lowercase import path
go_import_path: github.com/justanotherorganization/justanotherbotkit