Skip to content

Commit

Permalink
ci: modify travis file
Browse files Browse the repository at this point in the history
  • Loading branch information
postables committed Jun 10, 2019
1 parent 0baaadc commit 0f7a3c0
Showing 1 changed file with 11 additions and 19 deletions.
30 changes: 11 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,22 @@
os:
- linux

language: go

go:
- 1.11.x
- '1.12'

env:
global:
- GOTFLAGS="-race"
matrix:
- BUILD_DEPTYPE=gomod

- GO111MODULE=on

# disable travis install
install:
- true
- go mod download

script:
- bash <(curl -s https://raw.githubusercontent.com/ipfs/ci-helpers/master/travis-ci/run-standard-tests.sh)
before_script:
- go vet ./...
- go build ./...
- go test -run xxxx ./...

script:
- go test -race -short -coverprofile=coverage.txt ./...

cache:
directories:
- $GOPATH/pkg/mod
- $HOME/.cache/go-build

notifications:
email: false
after_success:
- bash <(curl -s https://codecov.io/bash)

0 comments on commit 0f7a3c0

Please sign in to comment.