change travis config script

This commit is contained in:
andy xie
2016-12-21 16:52:31 +08:00
parent c0cb7489b8
commit acfbaa68e0
4 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -1 +1 @@
/bin/node-problem-detector
/node-problem-detector
+1 -1
View File
@@ -14,4 +14,4 @@ install:
- cd $HOME/gopath/src/k8s.io/node-problem-detector
script:
- make test
- go build -race
- make node-problem-detector
+3 -5
View File
@@ -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
View File