Compile package in 32-bit mode

This commit is contained in:
Alexander Petrov 2020-02-18 09:05:28 +00:00 committed by Stanisław Barzowski
parent f5778853ed
commit e6572f5083
3 changed files with 18 additions and 7 deletions

View File

@ -12,6 +12,14 @@ matrix:
arch: arm64 arch: arm64
env: env:
- PYTHON_COMMAND=python3 - 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" - name: "arch: ppc64le"
go: 1.13.x go: 1.13.x
arch: ppc64le arch: ppc64le

View File

@ -6,14 +6,17 @@ PYTHON_COMMAND=${PYTHON_COMMAND:=python}
set -x 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 build
$PYTHON_COMMAND setup.py test $PYTHON_COMMAND setup.py test
fi
export IMPLEMENTATION=golang export IMPLEMENTATION=golang

View File

@ -2,7 +2,7 @@
run_tests() { run_tests() {
$GOPATH/bin/goveralls -service=travis-ci $GOPATH/bin/goveralls -service=travis-ci
./tests.sh --skip-go-test SKIP_GO_TESTS=1 ./tests.sh
} }
run_tests run_tests