diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2018-01-12 16:31:11 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-01-24 08:18:50 +0900 |
commit | 3356b9bc9b9c1da723cbaeb63b5496594e9e6e01 (patch) | |
tree | 855b10b097655eaa246a1f49351303a74f05d21f | |
parent | 18bf83da2d5a70964cff3727e7fd9f9b318a2aed (diff) |
travis: Run unit tests on i386 arch
To do more tests for the compatibility with the 32-bit architecture,
this patch fixes to run "go build" in _unittest section and run unit
tests with GOARCH="386".
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
-rw-r--r-- | .travis.yml | 20 |
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 # |