Skip to content

Commit 07fa4c0

Browse files
committed
Run tests on other CPU architectures (arm64, ppc64le).
1 parent 5976644 commit 07fa4c0

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

.travis.yml

+15
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ matrix:
66
- go: 1.11.x
77
- go: 1.12.x
88
- go: 1.13.x
9+
arch: amd64
10+
- name: "arch: arm64"
11+
go: 1.13.x
12+
arch: arm64
13+
env:
14+
- PYTHON_COMMAND=python3
15+
- name: "arch: ppc64le"
16+
go: 1.13.x
17+
arch: ppc64le
18+
env:
19+
- PYTHON_COMMAND=python3
920
- go: tip
1021
- name: "Bazel Check"
1122
go: 1.x
@@ -23,10 +34,14 @@ matrix:
2334
script: make all
2435

2536
before_install:
37+
- sudo apt install python3-dev
2638
- go get github.com/axw/gocov/gocov
2739
- go get github.com/mattn/goveralls
2840
- go get github.com/fatih/color
2941
- if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
3042
- go get github.com/sergi/go-diff/diffmatchpatch
3143

3244
script: ./travisBuild.sh
45+
46+
env:
47+
- PYTHON_COMMAND=python

tests.sh

+8-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,18 @@
22

33
set -e
44

5+
PYTHON_COMMAND=${PYTHON_COMMAND:=python}
6+
7+
set -x
8+
9+
510
[ "$1" = "--skip-go-test" ] || go test ./...
611

12+
713
c-bindings-tests/run.sh
814

9-
python setup.py build
10-
python setup.py test
15+
$PYTHON_COMMAND setup.py build
16+
$PYTHON_COMMAND setup.py test
1117

1218
export IMPLEMENTATION=golang
1319

0 commit comments

Comments
 (0)