mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
Adjust scripts to be go v1.14 compatible
This commit is contained in:
15
hack/shellHelpers.sh
Normal file
15
hack/shellHelpers.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright 2019 The Kubernetes Authors.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# TODO: Make the code ignorant of the CI environment "brand name".
|
||||
# We used to run CI tests on travis, and disabled certain tests
|
||||
# when running there. Now we run on Prow, so look for that.
|
||||
# https://github.com/kubernetes/test-infra/blob/master/prow/jobs.md
|
||||
# Might be useful to eschew using the brand name of the CI environment
|
||||
# (replace "travis" with "RemoteCI" or something - not just switch to "prow").
|
||||
|
||||
function onLinuxAndNotOnRemoteCI {
|
||||
[[ ("linux" == "$(go env GOOS)") && (-z ${PROW_JOB_ID+x}) ]] && return
|
||||
false
|
||||
}
|
||||
Reference in New Issue
Block a user