mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-03-06 11:40:27 +00:00
Merge pull request #54 from andyxning/change_travis_config_script
change travis config script
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1 +1 @@
|
||||
/bin/node-problem-detector
|
||||
/node-problem-detector
|
||||
|
||||
@@ -14,4 +14,4 @@ install:
|
||||
- cd $HOME/gopath/src/k8s.io/node-problem-detector
|
||||
script:
|
||||
- make test
|
||||
- go build -race
|
||||
- make node-problem-detector
|
||||
|
||||
8
Makefile
8
Makefile
@@ -9,10 +9,8 @@ PROJ = google_containers
|
||||
|
||||
PKG_SOURCES := $(shell find pkg -name '*.go')
|
||||
|
||||
node-problem-detector: ./bin/node-problem-detector
|
||||
|
||||
./bin/node-problem-detector: $(PKG_SOURCES) node_problem_detector.go
|
||||
CGO_ENABLED=0 GOOS=linux godep go build -a -installsuffix cgo -ldflags '-w' -o node-problem-detector
|
||||
node-problem-detector: $(PKG_SOURCES) node_problem_detector.go
|
||||
GOOS=linux go build -ldflags '-w -extldflags "-static"' -o node-problem-detector
|
||||
|
||||
test:
|
||||
go test -timeout=1m -v -race ./pkg/...
|
||||
@@ -24,4 +22,4 @@ push: container
|
||||
gcloud docker push gcr.io/$(PROJ)/node-problem-detector:$(TAG)
|
||||
|
||||
clean:
|
||||
rm -f ./bin/node-problem-detector
|
||||
rm -f node-problem-detector
|
||||
|
||||
Reference in New Issue
Block a user