Fix installation script

This commit is contained in:
klizhentas
2015-05-04 08:28:32 -07:00
parent b54ed1c32c
commit 7e82761e33
+18 -14
View File
@@ -4,19 +4,29 @@ ETCD_NODE3 := http://127.0.0.1:4003
ETCD_NODES := ${ETCD_NODE1},${ETCD_NODE2},${ETCD_NODE3}
ETCD_FLAGS := TELEPORT_TEST_ETCD_NODES=${ETCD_NODES}
test: clean
.PHONY: install test test-with-etcd remove-temp files test-package update test-grep-package cover-package cover-package-with-etcd run profile sloccount set-etcd
install: remove-temp-files
go get github.com/jteeuwen/go-bindata/go-bindata
go install github.com/gravitational/teleport/Godeps/_workspace/src/github.com/elazarl/go-bindata-assetfs/go-bindata-assetfs
go-bindata-assetfs -pkg="cp" ./assets/...
mv bindata_assetfs.go ./cp
sed -i 's|github.com/elazarl/go-bindata-assetfs|github.com/gravitational/teleport/Godeps/_workspace/src/github.com/elazarl/go-bindata-assetfs|' ./cp/bindata_assetfs.go
go install github.com/gravitational/teleport/teleport
test: remove-temp-files
go test -v ./... -cover
test-with-etcd: clean
test-with-etcd: remove-temp-files
${ETCD_FLAGS} go test -v ./... -cover
clean:
remove-temp-files:
find . -name flymake_* -delete
test-package: clean
test-package: remove-temp-files
go test -v ./$(p)
test-package-with-etcd: clean
test-package-with-etcd: remove-temp-files
${ETCD_FLAGS} go test -v ./$(p)
update:
@@ -24,23 +34,17 @@ update:
find . -iregex .*go | xargs sed -i 's:".*Godeps/_workspace/src/:":g'
godep save -r ./...
test-grep-package: clean
test-grep-package: remove-temp-files
go test -v ./$(p) -check.f=$(e)
cover-package: clean
cover-package: remove-temp-files
go test -v ./$(p) -coverprofile=/tmp/coverage.out
go tool cover -html=/tmp/coverage.out
cover-package-with-etcd: clean
cover-package-with-etcd: remove-temp-files
${ETCD_FLAGS} go test -v ./$(p) -coverprofile=/tmp/coverage.out
go tool cover -html=/tmp/coverage.out
install: clean
go install github.com/gravitational/teleport/Godeps/_workspace/src/github.com/elazarl/go-bindata-assetfs
go-bindata-assetfs -pkg="cp" ./assets/...
mv bindata_assetfs.go ./cp
go install github.com/gravitational/teleport/teleport
run: install
teleport -addr=localhost:2022\
-log=console\