adds golang 1.11.x and tip to build

Signed-off-by: Mike Brown <brownwm@us.ibm.com>
This commit is contained in:
Mike Brown 2018-10-23 16:53:50 -05:00
parent edf2b81778
commit bc97f51477

View File

@ -2,48 +2,48 @@ git:
depth: 150 depth: 150
language: go language: go
go:
- 1.11.x
- tip
matrix:
allow_failures:
- go: tip
sudo: required sudo: required
services: services:
- docker - docker
cache: cache:
directories: directories:
- "${HOME}/google-cloud-sdk/" - "${HOME}/google-cloud-sdk/"
before_install: before_install:
# libseccomp in trusty is not new enough, need backports version. # libseccomp in trusty is not new enough, need backports version.
- sudo sh -c "echo 'deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse' > /etc/apt/sources.list.d/backports.list" - sudo sh -c "echo 'deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse' > /etc/apt/sources.list.d/backports.list"
- sudo apt-get update - sudo apt-get update
install: install:
- sudo apt-get install btrfs-tools - sudo apt-get install btrfs-tools
- sudo apt-get install libseccomp2/trusty-backports - sudo apt-get install libseccomp2/trusty-backports
- sudo apt-get install libseccomp-dev/trusty-backports - sudo apt-get install libseccomp-dev/trusty-backports
- sudo apt-get install socat - sudo apt-get install socat
before_script: before_script:
- export PATH=$HOME/gopath/bin:$PATH - export PATH=$HOME/gopath/bin:$PATH
jobs: script:
include: - make install.tools
- stage: Build - make .gitvalidation
script: - make binaries
- make install.tools - make install.deps
- make .gitvalidation - make containerd
- make binaries - sudo PATH=$PATH GOPATH=$GOPATH make install-containerd
go: "1.10.x" - make test
- stage: Test - make test-integration
script: - make test-cri
- make install.deps after_script:
- make containerd # Abuse travis to preserve the log.
- sudo PATH=$PATH GOPATH=$GOPATH make install-containerd - cat /tmp/test-integration/containerd.log
- make test - cat /tmp/test-cri/containerd.log
- make test-integration
- make test-cri
after_script:
# Abuse travis to preserve the log.
- cat /tmp/test-integration/containerd.log
- cat /tmp/test-cri/containerd.log
go: "1.10.x"