Merge pull request #54 from andyxning/change_travis_config_script

change travis config script
This commit is contained in:
Lantao Liu
2016-12-21 01:11:50 -08:00
committed by GitHub
4 changed files with 5 additions and 7 deletions

2
.gitignore vendored
View File

@@ -1 +1 @@
/bin/node-problem-detector
/node-problem-detector

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

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