mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-04-23 20:57:10 +00:00
Merge pull request #335 from marquiz/devel/prow
scripts: add scripts for kubernetest test-infra jobs
This commit is contained in:
commit
f1c8c3aa95
3 changed files with 13 additions and 6 deletions
|
@ -11,13 +11,9 @@ env:
|
|||
services:
|
||||
- docker
|
||||
|
||||
before_script:
|
||||
- curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.27.0
|
||||
|
||||
script:
|
||||
- make gofmt-verify
|
||||
- make ci-lint
|
||||
- make image -e
|
||||
- scripts/test-infra/verify.sh
|
||||
- scripts/test-infra/build-image.sh
|
||||
- if [ "$TRAVIS_BRANCH" == master -a -n "$IMAGE_REPO_USER" ]; then
|
||||
set -e;
|
||||
echo "$IMAGE_REPO_PASSWORD" | docker login -u "$IMAGE_REPO_USER" --password-stdin quay.io;
|
||||
|
|
3
scripts/test-infra/build-image.sh
Executable file
3
scripts/test-infra/build-image.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
make image -e
|
8
scripts/test-infra/verify.sh
Executable file
8
scripts/test-infra/verify.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
# Install deps
|
||||
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.27.0
|
||||
|
||||
# Run verify steps
|
||||
make gofmt-verify -e
|
||||
make ci-lint -e
|
Loading…
Add table
Add a link
Reference in a new issue