mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
|
dist: xenial
|
||
|
language: go
|
||
|
|
||
|
go:
|
||
|
- "1.13.x"
|
||
|
|
||
|
env:
|
||
|
global:
|
||
|
- RUNC_VERSION=v1.0.0-rc9
|
||
|
- GOLANGCI_LINT_VERSION=v1.22.2
|
||
|
|
||
|
addons:
|
||
|
apt:
|
||
|
packages:
|
||
|
- libseccomp-dev
|
||
|
|
||
|
before_install:
|
||
|
- uname -r
|
||
|
- |
|
||
|
pushd ..
|
||
|
git clone https://github.com/containerd/containerd.git
|
||
|
git clone https://github.com/containerd/project
|
||
|
go get -u github.com/vbatts/git-validation
|
||
|
pushd containerd
|
||
|
make -j$(nproc)
|
||
|
sudo make install
|
||
|
sudo rm -f $(type -P ctr)
|
||
|
popd
|
||
|
popd
|
||
|
|
||
|
install:
|
||
|
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_LINT_VERSION}
|
||
|
# set up runc
|
||
|
- sudo curl -L https://github.com/opencontainers/runc/releases/download/${RUNC_VERSION}/runc.amd64 -o /usr/bin/runc
|
||
|
- sudo chmod +x /usr/bin/runc
|
||
|
- go get -u github.com/vbatts/git-validation
|
||
|
- go get -u github.com/kunalkushwaha/ltag
|
||
|
|
||
|
script:
|
||
|
- DCO_VERBOSITY=-q ../project/script/validate/dco
|
||
|
- ../project/script/validate/fileheader ../project/
|
||
|
- make check
|
||
|
- make test
|
||
|
- make
|
||
|
- CONTAINERD=$(type -P containerd) ./script/tests/test_encryption.sh
|