1language: go
2go_import_path: github.com/jarcoal/httpmock
3
4sudo: false
5
6matrix:
7  include:
8    - go: 1.7.x
9    - go: 1.8.x
10    - go: 1.9.x
11    - go: 1.10.x
12    - go: 1.11.x
13    - go: 1.12.x
14    - go: 1.13.x
15    - go: 1.14.x
16      env:
17        - USE_LINTER=1
18      install:
19        - wget -O - -q https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $GOPATH/bin v1.24.0
20      after_success:
21        - go get github.com/mattn/goveralls
22        - goveralls -coverprofile=coverage.out -service=travis-ci
23    - go: master
24  allow_failures:
25    - go: master
26  fast_finish: true
27
28script:
29  - export GORACE="halt_on_error=1"
30  - go test -race -covermode=atomic -coverprofile=coverage.out ./...
31  - >
32    if [ "$USE_LINTER" = 1 ]; then
33      golangci-lint run -E gofmt -E golint -E maligned -E misspell -E prealloc -E unconvert -E whitespace ./...;
34    fi
35
36notifications:
37  email: false
38