forked from weaveworks/ignite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (26 loc) · 1.15 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
language: minimal # git checkout will not be in a GOPATH
dist: bionic # Ubuntu 18.04 required for nested-virt
services:
- docker
env:
- GIMME_GO_VERSION=1.14.2
install:
- eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | bash)" # install specific go version
- |
# https://ignite.readthedocs.io/en/latest/installation.html
sudo apt-get install -y cpu-checker
sudo apt-get install -y --no-install-recommends dmsetup openssh-client git binutils
sudo which containerd || sudo apt-get install -y --no-install-recommends containerd
# Install containerd if it's not present -- prevents breaking docker-ce installations
- kvm-ok
- |
export CNI_VERSION=v0.8.5
export ARCH=$([ $(uname -m) = "x86_64" ] && echo amd64 || echo arm64)
sudo mkdir -p /opt/cni/bin
curl -sSL https://github.com/containernetworking/plugins/releases/download/${CNI_VERSION}/cni-plugins-linux-${ARCH}-${CNI_VERSION}.tgz | sudo tar -xz -C /opt/cni/bin
before_script:
- make ignite ignite-spawn bin/amd64/Dockerfile GO_MAKE_TARGET=local
script:
- make test
- make root-test
- make e2e-nobuild # this depends on Travis CI's support for nested virtualization