Skip to content

Commit

Permalink
Add workaround to find kubectl binary on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Cecile Robert-Michon committed Apr 29, 2020
1 parent 7177d6a commit 59fda7b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/ci-conformance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,16 @@ build_k8s() {
# ensure the e2e script will find our binaries ...
mkdir -p "${PWD}/_output/bin/"
cp -f "${PWD}/bazel-bin/test/e2e/e2e.test" "${PWD}/_output/bin/e2e.test"
# workaround for mac os
cp -f "${PWD}/bazel-bin/vendor/github.com/onsi/ginkgo/ginkgo/darwin_amd64_stripped/ginkgo" "${PWD}/_output/bin/ginkgo" || true
# workarounds for mac os
cp -f "${PWD}/bazel-bin/vendor/github.com/onsi/ginkgo/ginkgo/darwin_amd64_stripped/ginkgo" "${PWD}/_output/bin/ginkgo" 2>/dev/null || true
cp -f "${PWD}/bazel-bin/cmd/kubectl/darwin_amd64_pure_stripped/kubectl" "${PWD}/_output/bin/kubectl" 2>/dev/null || true

PATH="$(dirname "$(find "${PWD}/bazel-bin/" -name kubectl -type f)"):${PATH}"
export PATH

# attempt to release some memory after building
sync || true
echo 1 > /proc/sys/vm/drop_caches || true
(echo 1 > /proc/sys/vm/drop_caches) 2>/dev/null || true

popd
}
Expand Down

0 comments on commit 59fda7b

Please sign in to comment.