diff --git a/.travis.yml b/.travis.yml index ebbfd131d..fe15c5575 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,14 @@ matrix: arch: arm64 env: - PYTHON_COMMAND=python3 + - name: "arch: i686" + go: 1.13.x + arch: amd64 + env: + - PYTHON_COMMAND=python3 + - GOARCH=386 + - CGO_ENABLED=1 + - SKIP_PYTHON_BINDINGS_TESTS=1 - name: "arch: ppc64le" go: 1.13.x arch: ppc64le diff --git a/tests.sh b/tests.sh index 80e0bb0c0..0efbf15fe 100755 --- a/tests.sh +++ b/tests.sh @@ -6,14 +6,17 @@ PYTHON_COMMAND=${PYTHON_COMMAND:=python} set -x +[ "$SKIP_GO_TESTS" == 1 ] || go test ./... -[ "$1" = "--skip-go-test" ] || go test ./... +if [ "$SKIP_PYTHON_BINDINGS_TESTS" == 1 ] +then + c-bindings-tests/build.sh +else + c-bindings-tests/run.sh - -c-bindings-tests/run.sh - -$PYTHON_COMMAND setup.py build -$PYTHON_COMMAND setup.py test + $PYTHON_COMMAND setup.py build + $PYTHON_COMMAND setup.py test +fi export IMPLEMENTATION=golang diff --git a/travisBuild.sh b/travisBuild.sh index 6915c3615..48e3142fa 100755 --- a/travisBuild.sh +++ b/travisBuild.sh @@ -2,7 +2,7 @@ run_tests() { $GOPATH/bin/goveralls -service=travis-ci - ./tests.sh --skip-go-test + SKIP_GO_TESTS=1 ./tests.sh } run_tests