* skeleton for envtest fission * Refactor code and add CLI test * hack * Update server test * remove skip-ci for lint tests * Pass client go storagesvc * Add clientGen interface across code * Fix storagesvc test * Fix cmd client * add retry in server test * Fix concurrenct access to pool deployment * Remove old executor test * get rid of ginkgo/gomega * disable flaky test * flaky test * revert ci change * handle err from ParseBool --------- Signed-off-by: Sanket Sudake <sanketsudake@gmail.com> Co-authored-by: Pranoy Kundu <pranoy1998k@gmail.com>
45 lines
1.2 KiB
Bash
Executable File
45 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
set -exo pipefail
|
|
|
|
if [ ! -z "${KUBECONFIG}" ]
|
|
then
|
|
if [ ! -f "${KUBECONFIG}" ]
|
|
then
|
|
unset KUBECONFIG
|
|
else
|
|
K="kubectl --kubeconfig $KUBECONFIG --namespace default"
|
|
if $K get configmap ok-to-destroy
|
|
then
|
|
set +e # do not break if crd not found
|
|
$K delete functions --all
|
|
$K delete environments --all
|
|
$K delete httptriggers --all
|
|
$K delete kuberneteswatchtriggers --all
|
|
$K delete messagequeuetriggers --all
|
|
$K delete packages --all
|
|
$K delete timetriggers --all
|
|
set -e
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
set +x
|
|
|
|
# for codecov
|
|
echo "" > coverage.txt
|
|
|
|
make install-envtest
|
|
KUBEBUILDER_ASSETS=$(setup-envtest -p path use 1.23.x)
|
|
export KUBEBUILDER_ASSETS
|
|
|
|
# The executor unit test only works with NodePort-type services for
|
|
# now. So disable it for our travis ci tests except some partial tests.
|
|
for d in $(go list ./... | grep -v '/vendor/' | grep -v 'examples/go' | grep -v 'benchmark'); do
|
|
echo "Running tests in $d"
|
|
go test -race -v -coverprofile=profile.out -covermode=atomic $d
|
|
if [ -f profile.out ]; then
|
|
cat profile.out >> coverage.txt
|
|
rm profile.out
|
|
fi
|
|
done
|