summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.travis.yml20
1 files changed, 13 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml
index d14e569b..0ffddc69 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,7 +7,10 @@ _dep_ensure: &_dep_ensure
_unittest: &_unittest
<<: *_dep_ensure
- script: go test $(go list ./... | grep -v '/vendor/')
+ script:
+ - go test $(go list ./... | grep -v '/vendor/')
+ - go build -o ./gobgp/gobgp ./gobgp/
+ - go build -o ./gobgpd/gobgpd ./gobgpd/
_build: &_build
<<: *_dep_ensure
@@ -45,6 +48,9 @@ matrix:
allow_failures:
- go: tip
include:
+#
+# Unit Tests
+#
- <<: *_unittest
env:
- DESCRIPTION="Unit Tests"
@@ -59,6 +65,12 @@ matrix:
go: 1.9
after_success:
- test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash
+ - <<: *_unittest
+ env:
+ - DESCRIPTION="Unit Tests on i386"
+ before_script:
+ - export GOARCH="386"
+ - go env
#
# Cross-compile
#
@@ -83,12 +95,6 @@ matrix:
before_script:
- export GOOS="darwin"
- go env
- - <<: *_build
- env:
- - GOARCH="386"
- before_script:
- - export GOARCH="386"
- - go env
#
# Misc
#