k3s/vendor/github.com/kubernetes-sigs/cri-tools/.travis.yml

60 lines
1.2 KiB
YAML
Raw Normal View History

2019-02-08 04:04:22 +00:00
language: go
sudo: required
2019-07-10 03:51:02 +00:00
dist: xenial
2019-02-08 04:04:22 +00:00
go:
2019-07-10 03:51:02 +00:00
- 1.12.x
2019-02-08 04:04:22 +00:00
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
2019-07-10 03:51:02 +00:00
- travis_wait hack/install-docker.sh
- travis_wait hack/install-kubelet.sh
2019-02-08 04:04:22 +00:00
- 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"
2019-07-10 03:51:02 +00:00
- travis_wait powershell hack/install-kubelet.ps1
2019-02-08 04:04:22 +00:00
# Skip hack/run-critest.sh temporarily.
stages:
- Static check
- Build
- Test