Skip to content

Commit

Permalink
Travis-ci: added support for ppc64le
Browse files Browse the repository at this point in the history
  • Loading branch information
dthadi3 authored and hush-hush committed Nov 26, 2020
1 parent 36369de commit 70f33d5
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .travis.yml
Expand Up @@ -3,7 +3,7 @@ language: go
arch:
- amd64
- arm64

- ppc64le
go:
- 1.13.x
- 1.14.x
Expand All @@ -24,16 +24,36 @@ jobs:
go: 1.13.x
script:
- GOARCH=386 go test -v ./...
#Added power jobs
- arch: ppc64le
go: 1.15.x
script:
- GOARCH=ppc64le go test -v ./...
- arch: ppc64le
go: 1.14.x
script:
- GOARCH=ppc64le go test -v ./...
- arch: ppc64le
go: 1.13.x
script:
- GOARCH=ppc64le go test -v ./...
# testing packages are no longer compatible with 1.12. We only test that we
# can build.
- go: 1.12.x
arch: AMD64
script:
- ls -l
- go build -o test-build ./example/simple_example.go
- ./test-build
- go: 1.12.x
arch: ppc64le
script:
- ls -l
- go build -o test-build ./example/simple_example.go
- ./test-build

script:
# race detector is only available on amd64
- if [[ "$TRAVIS_CPU_ARCH" == "amd64" ]]; then go test -race -v ./...; else go test -v ./...; fi
- if [[ "$TRAVIS_CPU_ARCH" == "amd64" ]] || [[ "$TRAVIS_CPU_ARCH" == "ppc64le" ]]; then go test -race -v ./...; else go test -v ./...; fi
- go vet ./...
- "[ -z \"`go fmt ./...`\" ]"

0 comments on commit 70f33d5

Please sign in to comment.