summaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@gmail.com>2019-04-04 20:39:38 +0900
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2019-04-04 21:33:20 +0900
commit2203e7640b7c5d37555ceb26d08870970cf54708 (patch)
tree9bd4018e382561fa3758756e9f85e90b6a3b4076 /.travis.yml
parent0ef2ef26aac46845f2a483b4725cbf2c1243cd63 (diff)
test: switch to module from dep completely
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml16
1 files changed, 5 insertions, 11 deletions
diff --git a/.travis.yml b/.travis.yml
index 68c06df4..3b82ff35 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,18 +1,13 @@
language: go
-_dep_ensure: &_dep_ensure
- go: "1.12"
- before_install: go get -u github.com/golang/dep/cmd/dep
- install: $GOPATH/bin/dep ensure
-
_unittest: &_unittest
- <<: *_dep_ensure
+ go: "1.12"
script:
- go test $([ $(go env GOARCH) == 'amd64' ] && echo '-race') $(go list ./... | grep -v '/vendor/') -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
- <<: *_dep_ensure
+ go: "1.12"
script:
- go build -o ./cmd/gobgp/gobgp ./cmd/gobgp/
- go build -o ./cmd/gobgpd/gobgpd ./cmd/gobgpd/
@@ -44,6 +39,7 @@ _docker: &_docker
env:
global:
+ - GO111MODULE=on
- DOCKER_IMAGE=gobgp
- FROM_IMAGE=osrg/quagga
@@ -106,7 +102,7 @@ matrix:
#
# Misc
#
- - <<: *_dep_ensure
+ - go: "1.12"
env:
- DESCRIPTION="go fmt + vet + staticcheck"
before_script: go get -u honnef.co/go/tools/cmd/staticcheck
@@ -114,7 +110,7 @@ matrix:
- test -z "$(go fmt $(go list ./... | grep -v '/vendor/'))"
- go vet $(go list ./... | grep -v '/vendor/')
- staticcheck $(go list ./... | grep -v '/vendor/')
- - <<: *_dep_ensure
+ - go: "1.12"
env:
- DESCRIPTION="build_embeded_go.py"
script: python test/scenario_test/ci-scripts/build_embeded_go.py docs/sources/lib.md
@@ -223,8 +219,6 @@ matrix:
cache:
pip: true
-go_import_path: github.com/osrg/gobgp
-
notifications:
slack:
secure: KzuC9kytzS7wTlfj4MqSg8EpqXfJRMbo59dAVTA3w587achnVCS3vhUenWuhMCiWk7+6DVWwNpwzn2+A0S6RwMFMpKAU6Ij6K9sxEOgqBGuMN8w1//w+uJTryzsnebEIhInGt2kKfqz4Wx3QQqW5gVhI+8s+c5M0iXxFtN4soVk=