mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
60 lines
1.2 KiB
YAML
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
|