Skip to content

Commit 00bc2f5

Browse files
committed
Update to Golang 1.12, and prepare for ppc64le
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent bc94455 commit 00bc2f5

2 files changed

Lines changed: 17 additions & 9 deletions

File tree

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ environment:
1212
GOPATH: C:\gopath
1313
CGO_ENABLED: 1
1414
matrix:
15-
- GO_VERSION: 1.12.1
15+
- GO_VERSION: 1.12.5
1616

1717
before_build:
1818
- choco install -y mingw --version 5.3.0

.travis.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,16 @@ services:
77
language: go
88

99
go:
10-
- "1.11.x"
10+
- "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"
15+
16+
matrix:
17+
include:
18+
- os: "linux"
19+
env: TRAVIS_GOOS=darwin TRAVIS_CGO_ENABLED=0
1120

1221
go_import_path: github.com/containerd/containerd
1322

@@ -31,7 +40,6 @@ env:
3140
- TRAVIS_GOOS=linux TEST_RUNTIME=io.containerd.runc.v1 TRAVIS_CGO_ENABLED=1
3241
- TRAVIS_GOOS=linux TEST_RUNTIME=io.containerd.runc.v2 TRAVIS_CGO_ENABLED=1
3342
- TRAVIS_GOOS=linux TEST_RUNTIME=io.containerd.runtime.v1.linux TRAVIS_CGO_ENABLED=1
34-
- TRAVIS_GOOS=darwin TRAVIS_CGO_ENABLED=0
3543

3644
before_install:
3745
- uname -r
@@ -68,14 +76,14 @@ script:
6876
- if [ "$GOOS" = "linux" ]; then make check-protos check-api-descriptors; fi
6977
- make build
7078
- make binaries
71-
- if [ "$GOOS" = "linux" ]; then sudo make install ; fi
72-
- if [ "$GOOS" = "linux" ]; then make coverage ; fi
73-
- if [ "$GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH make root-coverage ; fi
74-
- if [ "$GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH make integration ; fi
79+
- if [ "$TRAVIS_GOOS" = "linux" ]; then sudo make install ; fi
80+
- if [ "$TRAVIS_GOOS" = "linux" ]; then make coverage ; fi
81+
- if [ "$TRAVIS_GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH make root-coverage ; fi
82+
- if [ "$TRAVIS_GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH make integration ; fi
7583
# Run the integration suite a second time. See discussion in github.com/containerd/containerd/pull/1759
76-
- if [ "$GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH TESTFLAGS_PARALLEL=1 make integration ; fi
84+
- if [ "$TRAVIS_GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH TESTFLAGS_PARALLEL=1 make integration ; fi
7785
- |
78-
if [ "$GOOS" = "linux" ]; then
86+
if [ "$TRAVIS_GOOS" = "linux" ]; then
7987
sudo mkdir -p /etc/containerd
8088
sudo bash -c "cat > /etc/containerd/config.toml <<EOF
8189
[plugins.cri.containerd.default_runtime]

0 commit comments

Comments
 (0)