Skip to content

Commit

Permalink
Compile package in 32-bit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
alldroll authored and sbarzowski committed Feb 18, 2020
1 parent f577885 commit e6572f5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 9 additions & 6 deletions tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion travisBuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e6572f5

Please sign in to comment.