adding stages to test the right go versions

Signed-off-by: Mike Brown <brownwm@us.ibm.com>
This commit is contained in:
Mike Brown 2017-08-15 10:14:37 -05:00
parent f2a228b6f8
commit 7d1b3a5af8

View File

@ -1,6 +1,4 @@
language: go language: go
go:
- 1.8
sudo: required sudo: required
@ -12,11 +10,11 @@ before_install:
- 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
- docker run --rm -v /usr/local/bin:/target jpetazzo/nsenter - docker run --rm -v /usr/local/bin:/target jpetazzo/nsenter
before_script: before_script:
- export PATH=$HOME/gopath/bin:$PATH - export PATH=$HOME/gopath/bin:$PATH
@ -24,17 +22,33 @@ before_script:
jobs: jobs:
include: include:
- stage: Build - stage: Build
script: script:
- make install.tools - make install.tools
- make .gitvalidation - make .gitvalidation
- make verify - make verify
- make binaries - make binaries
go: 1.8.x
- stage: Build
script:
- make install.tools
- make .gitvalidation
- make verify
- make binaries
go: tip
- stage: Test - stage: Test
script: script:
- make install.deps - make install.deps
- make test - make test
- make binaries - make binaries
- make test-cri - make test-cri
go: 1.8.x
- stage: Test
script:
- make install.deps
- make test
- make binaries
- make test-cri
go: tip
after_script: after_script:
# Abuse travis to preserve the log. # Abuse travis to preserve the log.