k3s/vendor/github.com/kubernetes-sigs/cri-tools/.travis.yml
2019-07-09 20:51:02 -07:00

60 lines
1.2 KiB
YAML

language: go
sudo: required
dist: xenial
go:
- 1.12.x
os:
- linux
- windows
go_import_path: github.com/kubernetes-sigs/cri-tools
services:
- docker
before_install:
- |
(
set -Eeuo pipefail
if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
choco install -y make mingw
export PATH="/c/tools/mingw64/bin:/c/ProgramData/chocolatey/bin;$PATH"
fi
)
install:
- make install.tools
jobs:
include:
- stage: Static check
os: linux # Only need to run on Linux
script:
- make lint
- make gofmt
- stage: Build
os: linux # Only need to run on Linux
script:
- make release
- stage: Test
os: linux
script:
- make
- travis_wait hack/install-docker.sh
- travis_wait hack/install-kubelet.sh
- sudo env PATH=$PATH GOPATH=$GOPATH hack/run-critest.sh
- stage: Test
os: windows
script:
- make windows
- powershell -c "Set-ExecutionPolicy Bypass -Scope CURRENTUSER -Force"
- travis_wait powershell hack/install-kubelet.ps1
# Skip hack/run-critest.sh temporarily.
stages:
- Static check
- Build
- Test