diff --git a/.travis.yml b/.travis.yml index ece6ac35..ebbfd131 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 @@ -23,6 +34,7 @@ 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 @@ -30,3 +42,6 @@ before_install: - go get github.com/sergi/go-diff/diffmatchpatch script: ./travisBuild.sh + +env: + - PYTHON_COMMAND=python diff --git a/tests.sh b/tests.sh index 6edf359d..80e0bb0c 100755 --- a/tests.sh +++ b/tests.sh @@ -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