travis: test on 386
MODIFY
.travis.yml
.travis.yml
@@ -27,6 +27,7 @@ env:
- TAGS="-tags bounds"
- TAGS="-tags noasm"
- TAGS="-tags safe"
+ - FORCE_GOARCH=386
cache:
directories:
@@ -49,6 +50,9 @@ matrix:
- os: linux
arch: arm64
env: TAGS="-tags safe"
+ - os: linux
+ arch: arm64
+ env: FORCE_GOARCH=386
- os: osx
env: TAGS="-tags bounds"
@@ -56,6 +60,8 @@ matrix:
env: TAGS="-tags noasm"
- os: osx
env: TAGS="-tags safe"
+ - os: osx
+ env: FORCE_GOARCH=386
- os: osx
arch: arm64
@@ -69,6 +75,8 @@ matrix:
env: TAGS="-tags noasm"
- os: windows
env: TAGS="-tags safe"
+ - os: windows
+ env: FORCE_GOARCH=386
- os: windows
arch: arm64

MODIFY
.travis/script.d/test.sh
.travis/script.d/test.sh
#!/bin/bash
+# Travis clobbers GOARCH env vars so this is necessary here.
+if [[ -n $FORCE_GOARCH ]]; then
+ export GOARCH=$FORCE_GOARCH
+fi
+
go get -d -v ./...
go build -v ./...
go test $TAGS -v ./...

MODIFY
README.md
README.md
@@ -10,7 +10,7 @@ go get -u gonum.org/v1/gonum/...
## Supported Go versions
-Gonum supports and tests using the gc compiler on the [two most recent Go releases](https://github.com/gonum/gonum/blob/master/.travis.yml#L6-L10) on Linux (amd64 and arm64), macOS and Windows (both on amd64).
+Gonum supports and tests using the gc compiler on the [two most recent Go releases](https://github.com/gonum/gonum/blob/master/.travis.yml#L6-L10) on Linux (386, amd64 and arm64), macOS and Windows (both on amd64).
## Release schedule

travis: test on 386