Skip to content

Commit 11274af

Browse files
authored
Test all archs (#71)
* Test all archs
1 parent e090e00 commit 11274af

2 files changed

Lines changed: 20 additions & 12 deletions

File tree

.travis.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ go:
1313
- 1.13.x
1414
- 1.14.x
1515
- 1.15.x
16+
- 1.16.x
1617
- master
1718

1819
script:
@@ -42,22 +43,14 @@ matrix:
4243
script:
4344
- GOOS=linux GOARCH=386 go test .
4445
- stage: buildotherprev
45-
go: 1.14.x
46+
go: 1.15.x
4647
os: linux
4748
arch: amd64
4849
script:
49-
- GOOS=darwin GOARCH=arm64 go build .
50-
- GOOS=freebsd GOARCH=arm64 go build .
51-
- GOOS=netbsd GOARCH=arm64 go build .
52-
- GOOS=freebsd GOARCH=amd64 go build .
53-
- GOOS=netbsd GOARCH=amd64 go build .
50+
- ./test-architectures.sh
5451
- stage: buildother
55-
go: 1.15.x
52+
go: 1.16.x
5653
os: linux
5754
arch: amd64
5855
script:
59-
- GOOS=darwin GOARCH=arm64 go build .
60-
- GOOS=freebsd GOARCH=arm64 go build .
61-
- GOOS=netbsd GOARCH=arm64 go build .
62-
- GOOS=freebsd GOARCH=amd64 go build .
63-
- GOOS=netbsd GOARCH=amd64 go build .
56+
- ./test-architectures.sh

test-architectures.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
go tool dist list | while IFS=/ read os arch; do
6+
echo "Checking $os/$arch..."
7+
echo " normal"
8+
GOARCH=$arch GOOS=$os go build -o /dev/null ./...
9+
echo " noasm"
10+
GOARCH=$arch GOOS=$os go build -tags noasm -o /dev/null ./...
11+
echo " appengine"
12+
GOARCH=$arch GOOS=$os go build -tags appengine -o /dev/null ./...
13+
echo " noasm,appengine"
14+
GOARCH=$arch GOOS=$os go build -tags 'appengine noasm' -o /dev/null ./...
15+
done

0 commit comments

Comments
 (0)