Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 18, 2024. It is now read-only.

Commit 2157590

Browse files
Initial minikube test for Travis CI
This commit switches the kubeadm-dind cluster to minikube. Kubernetes test would be performed in minikube. Signed-off-by: AnthonyAmanse <ghieamanse@gmail.com>
1 parent f755902 commit 2157590

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

‎.travis.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ matrix:
2121

2222
env:
2323
- TEST_RUN="./tests/test-docker-compose.sh"
24-
- TEST_RUN="./tests/test-kubeadm-dind-cluster.sh"
24+
- TEST_RUN="./tests/test-minikube.sh"
2525
- TEST_RUN="./tests/test-kubernetes.sh"
2626

2727
before_install:

‎tests/test-kubeadm-dind-cluster.sh‎ renamed to ‎tests/test-minikube.sh‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
# shellcheck disable=SC1090
44
source "$(dirname "0ドル")"/../scripts/resources.sh
55

6-
setup_dind-cluster() {
7-
wget https://cdn.rawgit.com/Mirantis/kubeadm-dind-cluster/master/fixed/dind-cluster-v1.8.sh
8-
chmod 0755 dind-cluster-v1.8.sh
9-
./dind-cluster-v1.8.sh up
10-
export PATH="$HOME/.kubeadm-dind-cluster:$PATH"
6+
setup_minikube() {
7+
export CHANGE_MINIKUBE_NONE_USER=true
8+
curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.9.0/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
9+
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.25.2/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
10+
sudo -E minikube start --vm-driver=none --kubernetes-version=v1.9.0
11+
minikube update-context
12+
JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}'; until kubectl get nodes -o jsonpath="$JSONPATH" 2>&1 | grep -q "Ready=True"; do sleep 1; done
1113
}
1214

1315
kubectl_deploy() {
@@ -37,7 +39,7 @@ verify_deploy(){
3739
}
3840

3941
main(){
40-
if ! setup_dind-cluster; then
42+
if ! setup_minikube; then
4143
test_failed "0ドル"
4244
elif ! kubectl_deploy; then
4345
test_failed "0ドル"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /