mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
60 lines
1.1 KiB
YAML
60 lines
1.1 KiB
YAML
language: go
|
|
sudo: required
|
|
dist: trusty
|
|
|
|
go:
|
|
- 1.11.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
|
|
- hack/install-docker.sh
|
|
- 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"
|
|
- powershell hack/install-kubelet.ps1
|
|
# Skip hack/run-critest.sh temporarily.
|
|
|
|
stages:
|
|
- Static check
|
|
- Build
|
|
- Test
|