Skip to content

Commit

Permalink
Run tests on other CPU architectures (arm64, ppc64le).
Browse files Browse the repository at this point in the history
  • Loading branch information
sbarzowski committed Feb 2, 2020
1 parent 5976644 commit 07fa4c0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ matrix:
- go: 1.11.x
- go: 1.12.x
- go: 1.13.x
arch: amd64
- name: "arch: arm64"
go: 1.13.x
arch: arm64
env:
- PYTHON_COMMAND=python3
- name: "arch: ppc64le"
go: 1.13.x
arch: ppc64le
env:
- PYTHON_COMMAND=python3
- go: tip
- name: "Bazel Check"
go: 1.x
Expand All @@ -23,10 +34,14 @@ matrix:
script: make all

before_install:
- sudo apt install python3-dev
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- go get github.com/fatih/color
- if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
- go get github.com/sergi/go-diff/diffmatchpatch

script: ./travisBuild.sh

env:
- PYTHON_COMMAND=python
10 changes: 8 additions & 2 deletions tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@

set -e

PYTHON_COMMAND=${PYTHON_COMMAND:=python}

set -x


[ "$1" = "--skip-go-test" ] || go test ./...


c-bindings-tests/run.sh

python setup.py build
python setup.py test
$PYTHON_COMMAND setup.py build
$PYTHON_COMMAND setup.py test

export IMPLEMENTATION=golang

Expand Down

0 comments on commit 07fa4c0

Please sign in to comment.