Skip to content

Commit

Permalink
Added binaries required by kubebuilder test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
I308301 committed Dec 6, 2019
1 parent 33efd2a commit 6a4a5fd
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .ci/test
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
set -e
set -ex

# For the test step concourse will set the following environment variables:
# SOURCE_PATH - path to component repository root directory.
Expand Down Expand Up @@ -51,6 +51,20 @@ go get -u github.com/onsi/ginkgo/ginkgo

###############################################################################

# Install Kubebuilder test dependencies
OS=$(go env GOOS)
ARCH=$(go env GOARCH)

# download kubebuilder and extract it to tmp
curl -sL https://go.kubebuilder.io/dl/2.2.0/${OS}/${ARCH} | tar -xz -C /tmp/

# move to a long-term location and put it on your path
# (you'll need to set the KUBEBUILDER_ASSETS env var if you put it somewhere else)
mv /tmp/kubebuilder_2.2.0_${OS}_${ARCH} /usr/local/kubebuilder
export PATH=$PATH:/usr/local/kubebuilder/bin

###############################################################################

function test_with_coverage() {
echo "[INFO] Test coverage is enabled."
local output_dir=test/output
Expand Down

0 comments on commit 6a4a5fd

Please sign in to comment.