-
Notifications
You must be signed in to change notification settings - Fork 3.3k
/
.travis.yml
57 lines (51 loc) · 1.53 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
language: go
sudo: required
services:
- docker
before_install:
# 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 apt-get update
install:
- sudo apt-get install btrfs-tools
- sudo apt-get install libseccomp2/trusty-backports
- sudo apt-get install libseccomp-dev/trusty-backports
- sudo apt-get install socat
- docker run --rm -v /usr/local/bin:/target jpetazzo/nsenter
before_script:
- export PATH=$HOME/gopath/bin:$PATH
jobs:
include:
- stage: Build
script:
- make install.tools
- make .gitvalidation
- make verify
- make binaries
go: 1.8.x
- script:
- make install.tools
- make .gitvalidation
- make verify
- make binaries
go: tip
- stage: Test
script:
- make install.deps
- make test
- make test-cri
after_script:
# Abuse travis to preserve the log.
- cat /tmp/test-cri/cri-containerd.log
- cat /tmp/test-cri/containerd.log
go: 1.8.x
- stage: E2E Test
script:
- test "${TRAVIS_EVENT_TYPE}" != "cron" && exit 0
- make install.deps
- make test-e2e-node
after_script:
# TODO(random-liu): Upload log to GCS.
- test "${TRAVIS_EVENT_TYPE}" != "cron" && exit 0
- cat /tmp/test-e2e-node/cri-containerd.log
go: 1.8.x