diff options
author | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2019-04-12 21:47:25 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2019-04-12 22:18:49 +0900 |
commit | 0942793b79fb0ba2f9c5f3b1c79c489ad59c98b9 (patch) | |
tree | 4a519b6cbadfd6511d94f886a62eb48b4c8ae84d /.travis.yml | |
parent | 6522c428c7f622522ee95ef0575c3fb0a696c68a (diff) |
travis: simplify unit test command
vendor directory doesn't exist anymore.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml index 3b82ff35..46b8c029 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,7 @@ language: go _unittest: &_unittest go: "1.12" script: - - go test $([ $(go env GOARCH) == 'amd64' ] && echo '-race') $(go list ./... | grep -v '/vendor/') -timeout 120s + - go test $([ $(go env GOARCH) == 'amd64' ] && echo '-race') -timeout 120s ./... - if [ "$(go env GOARCH)" = "amd64" ]; then go test -race github.com/osrg/gobgp/pkg/packet/bgp -run ^Test_RaceCondition$; else echo 'skip'; fi _build: &_build @@ -64,7 +64,7 @@ matrix: - DESCRIPTION="Tests + goreleaser + cover" go: "1.12" script: - - go test $(go list ./... | grep -v '/vendor/') -coverprofile=coverage.txt -covermode=atomic + - go test -coverprofile=coverage.txt -covermode=atomic ./... after_success: - test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash - bash <(curl -s https://codecov.io/bash) @@ -107,9 +107,9 @@ matrix: - DESCRIPTION="go fmt + vet + staticcheck" before_script: go get -u honnef.co/go/tools/cmd/staticcheck script: - - test -z "$(go fmt $(go list ./... | grep -v '/vendor/'))" - - go vet $(go list ./... | grep -v '/vendor/') - - staticcheck $(go list ./... | grep -v '/vendor/') + - test -z "$(go fmt ./...)" + - go vet ./... + - staticcheck ./... - go: "1.12" env: - DESCRIPTION="build_embeded_go.py" @@ -207,7 +207,7 @@ matrix: before_script: - npm install -g markdownlint-cli script: - - markdownlint $(find . -type f -name '*.md' | grep -v '/vendor/') + - markdownlint $(find . -type f -name '*.md') - <<: *_python env: - DESCRIPTION="Tools" |