From 4a934427dba92e82da570720d2af041c0ffea08d Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Thu, 4 Sep 2014 10:40:39 -0700 Subject: [PATCH] Exclude vendored etcd. --- .travis.yml | 4 ++-- cluster/saltbase/salt/etcd/init.sls | 6 +++--- hack/install-etcd.sh | 1 + hack/test-go.sh | 7 ++++--- hack/verify-boilerplate.sh | 2 +- 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 73f17bf8db8..a88fbb53374 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,8 +15,8 @@ install: script: - ./hack/test-go.sh - - PATH=$HOME/gopath/bin:$PATH ./hack/test-cmd.sh - - PATH=$HOME/gopath/bin:$HOME/etcd/bin:$PATH ./hack/test-integration.sh + - PATH=$HOME/gopath/bin:./third_party/etcd/bin:$PATH ./hack/test-cmd.sh + - PATH=$HOME/gopath/bin:./third_party/etcd/bin:$PATH ./hack/test-integration.sh notifications: irc: "chat.freenode.net#google-containers" diff --git a/cluster/saltbase/salt/etcd/init.sls b/cluster/saltbase/salt/etcd/init.sls index 783a88ecda2..3e3df0e3bab 100644 --- a/cluster/saltbase/salt/etcd/init.sls +++ b/cluster/saltbase/salt/etcd/init.sls @@ -4,9 +4,9 @@ etcd-install: - name: git://github.com/coreos/etcd cmd.wait: - cwd: /var/src/etcd - - names: - - git checkout ab4bcc18694644d12f0c038339d8d039072502b1 - - ./build + - name: | + git checkout ab4bcc18694644d12f0c038339d8d039072502b1 + ./build - env: - PATH: {{ grains['path'] }}:/usr/local/bin - watch: diff --git a/hack/install-etcd.sh b/hack/install-etcd.sh index b9017c24190..ac171450985 100755 --- a/hack/install-etcd.sh +++ b/hack/install-etcd.sh @@ -14,6 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +cd third_party git clone https://github.com/coreos/etcd.git cd etcd git checkout ab4bcc18694644d12f0c038339d8d039072502b1 diff --git a/hack/test-go.sh b/hack/test-go.sh index 9be038abbab..5154916f184 100755 --- a/hack/test-go.sh +++ b/hack/test-go.sh @@ -46,11 +46,12 @@ find_test_pkgs() { # there is currently a race in the coverage code in tip. Remove this when it is fixed # see https://code.google.com/p/go/issues/detail?id=8630 for details. -if [[ "${TRAVIS_GO_VERSION}" -eq "tip" ]]; then +if [ "${TRAVIS_GO_VERSION}" == "tip" ]; then KUBE_COVER="" +else + # -covermode=atomic becomes default with -race in Go >=1.3 + KUBE_COVER=${KUBE_COVER:--cover -covermode=atomic} fi -# -covermode=atomic becomes default with -race in Go >=1.3 -KUBE_COVER=${KUBE_COVER:--cover -covermode=atomic} KUBE_TIMEOUT=${KUBE_TIMEOUT:--timeout 30s} cd "${KUBE_TARGET}" diff --git a/hack/verify-boilerplate.sh b/hack/verify-boilerplate.sh index 5095b5afb02..a2c01da504b 100755 --- a/hack/verify-boilerplate.sh +++ b/hack/verify-boilerplate.sh @@ -18,7 +18,7 @@ REPO_ROOT="$(cd "$(dirname "$0")/../" && pwd -P)" result=0 -gofiles="$(find ${REPO_ROOT} -type f | grep "[.]go$" | grep -v "Godeps/\|third_party/\|release/\|_?output/|target/")" +gofiles="$(find ${REPO_ROOT} -type f | grep "[.]go$" | grep -v "Godeps/\|third_party/\|release/\|_?output/|target/")" for file in ${gofiles}; do if [[ "$(${REPO_ROOT}/hooks/boilerplate.sh "${file}")" -eq "0" ]]; then echo "Boilerplate header is wrong for: ${file}"