diff --git a/.appveyor.yml b/.appveyor.yml index accceec06..2cf404524 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -12,7 +12,7 @@ environment: GOPATH: C:\gopath CGO_ENABLED: 1 matrix: - - GO_VERSION: 1.12.1 + - GO_VERSION: 1.12.5 before_build: - choco install -y mingw --version 5.3.0 diff --git a/.travis.yml b/.travis.yml index f05de588e..3fc80f6c2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,16 @@ services: language: go go: - - "1.11.x" + - "1.12.x" +os: + - "linux" + # TODO ppc64le is currently timing out on travis; see https://github.com/containerd/containerd/pull/2896 + # - "linux-ppc64le" + +matrix: + include: + - os: "linux" + env: TRAVIS_GOOS=darwin TRAVIS_CGO_ENABLED=0 go_import_path: github.com/containerd/containerd @@ -31,7 +40,6 @@ env: - TRAVIS_GOOS=linux TEST_RUNTIME=io.containerd.runc.v1 TRAVIS_CGO_ENABLED=1 - TRAVIS_GOOS=linux TEST_RUNTIME=io.containerd.runc.v2 TRAVIS_CGO_ENABLED=1 - TRAVIS_GOOS=linux TEST_RUNTIME=io.containerd.runtime.v1.linux TRAVIS_CGO_ENABLED=1 - - TRAVIS_GOOS=darwin TRAVIS_CGO_ENABLED=0 before_install: - uname -r @@ -68,14 +76,14 @@ script: - if [ "$GOOS" = "linux" ]; then make check-protos check-api-descriptors; fi - make build - make binaries - - if [ "$GOOS" = "linux" ]; then sudo make install ; fi - - if [ "$GOOS" = "linux" ]; then make coverage ; fi - - if [ "$GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH make root-coverage ; fi - - if [ "$GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH make integration ; fi + - if [ "$TRAVIS_GOOS" = "linux" ]; then sudo make install ; fi + - if [ "$TRAVIS_GOOS" = "linux" ]; then make coverage ; fi + - if [ "$TRAVIS_GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH make root-coverage ; fi + - if [ "$TRAVIS_GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH make integration ; fi # Run the integration suite a second time. See discussion in github.com/containerd/containerd/pull/1759 - - if [ "$GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH TESTFLAGS_PARALLEL=1 make integration ; fi + - if [ "$TRAVIS_GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH TESTFLAGS_PARALLEL=1 make integration ; fi - | - if [ "$GOOS" = "linux" ]; then + if [ "$TRAVIS_GOOS" = "linux" ]; then sudo mkdir -p /etc/containerd sudo bash -c "cat > /etc/containerd/config.toml <