Skip to content

Commit 24e3848

Browse files
authored
Merge pull request #3272 from nitkon/patch-2
travis: Enable travis CI for ppc64le arch
2 parents cb46663 + d1b9ee5 commit 24e3848

3 files changed

Lines changed: 15 additions & 5 deletions

File tree

.travis.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ services:
66

77
language: go
88

9+
os:
10+
- linux
11+
- linux-ppc64le
12+
913
go:
1014
- "1.12.x"
11-
os:
12-
- "linux"
13-
# TODO ppc64le is currently timing out on travis; see https://github.com/containerd/containerd/pull/2896
14-
# - "linux-ppc64le"
1515

1616
matrix:
1717
include:
@@ -41,6 +41,11 @@ env:
4141
- TRAVIS_GOOS=linux TEST_RUNTIME=io.containerd.runc.v2 TRAVIS_CGO_ENABLED=1
4242
- TRAVIS_GOOS=linux TEST_RUNTIME=io.containerd.runtime.v1.linux TRAVIS_CGO_ENABLED=1
4343

44+
matrix:
45+
exclude:
46+
- env: TRAVIS_GOOS=darwin TRAVIS_CGO_ENABLED=0
47+
os: linux-ppc64le
48+
4449
before_install:
4550
- uname -r
4651

api/next.pb.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -840,6 +840,7 @@ file {
840840
java_outer_classname: "FieldMaskProto"
841841
java_multiple_files: true
842842
go_package: "google.golang.org/genproto/protobuf/field_mask;field_mask"
843+
cc_enable_arenas: true
843844
objc_class_prefix: "GPB"
844845
csharp_namespace: "Google.Protobuf.WellKnownTypes"
845846
}

script/setup/install-protobuf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#
2121
set -eu -o pipefail
2222

23-
PROTOBUF_VERSION=3.5.1
23+
PROTOBUF_VERSION=3.7.0
2424
GOARCH=$(go env GOARCH)
2525
GOOS=$(go env GOOS)
2626
PROTOBUF_DIR=$(mktemp -d)
@@ -41,6 +41,10 @@ amd64|386)
4141
unzip $PROTOBUF_DIR/protobuf -d /usr/local
4242
;;
4343

44+
ppc64le)
45+
wget -O $PROTOBUF_DIR/protobuf "https://github.com/google/protobuf/releases/download/v$PROTOBUF_VERSION/protoc-$PROTOBUF_VERSION-linux-ppcle_64.zip"
46+
unzip $PROTOBUF_DIR/protobuf -d /usr/local
47+
;;
4448
*)
4549
wget -O $PROTOBUF_DIR/protobuf "https://github.com/google/protobuf/releases/download/v$PROTOBUF_VERSION/protobuf-cpp-$PROTOBUF_VERSION.zip"
4650
unzip $PROTOBUF_DIR/protobuf -d /usr/src/protobuf

0 commit comments

Comments
 (0)