run integration tests against minikube on circleci

This commit is contained in:
Cedric Meury
2018-04-05 04:44:35 +02:00
parent 3545c12ee4
commit 8912eef468
2 changed files with 85 additions and 30 deletions
+5 -6
View File
@@ -27,17 +27,16 @@ function wait_deploy_ready() {
done
}
# RUN BUILD & SETUP --------------------------------------------------------------------------------------------------
# SETUP --------------------------------------------------------------------------------------------------------------
set -e
$helm init 1> /dev/null
make build 1> /dev/null
$helmfile -v 1> /dev/null
info "Using namespace: ${test_ns}"
info "Using Helm version: $(helm version --short --client | grep -o v.*$)"
$helm init --wait
$helmfile -v
$kubectl get namespace ${test_ns} &> /dev/null && warn "Namespace ${test_ns} exists, from a previous test run?"
trap "{ $kubectl delete namespace ${test_ns}; }" EXIT # remove namespace whenever we exit this script
info "Using namespace: ${test_ns}"
info "Using Helm version: $(helm version --short --client | grep -o v.*$)"
# TEST CASES----------------------------------------------------------------------------------------------------------