forked from perun-network/go-perun_archived
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (34 loc) · 1.02 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
os: linux
dist: xenial
git:
submodules: false
language: go
go: stable
go_import_path: perun.network/go-perun
env:
- GO111MODULE=on
cache:
directories:
- $HOME/.cache/go-build
- $HOME/gopath/pkg/mod
jobs:
include:
- stage: lint_fmt_vet_misspell
script:
- go get -u golang.org/x/lint/golint github.com/client9/misspell/cmd/misspell
- "! gofmt -l -s `ls -d */` | grep ."
- "go vet ./..."
- golint -set_exit_status ./...
- "ls -d */ | xargs misspell -error"
- stage: unit_tests
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- go test -timeout 60s -coverprofile c.out ./...
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
- stage: unit_race_tests
script:
- go test -timeout 120s -race -gcflags=all=-d=checkptr=0 ./...