From 6d81f10a67561aec4992bddf7b68402d00916080 Mon Sep 17 00:00:00 2001 From: Prateek Pandey Date: Mon, 10 Jun 2019 16:41:39 +0530 Subject: [PATCH] refact(travis,minikube): update minikube and base OS version (#99) Signed-off-by: prateekpandey14 --- .travis.yml | 34 ++++++++++++++++++++++------------ openebs/ci/travis-ci.sh | 2 +- 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/.travis.yml b/.travis.yml index 14db69add0f..7b91002c2f3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,22 +1,32 @@ -language: go +sudo: required +dist: xenial env: -- CHANGE_MINIKUBE_NONE_USER=true -git: - depth: false + global: + - CHANGE_MINIKUBE_NONE_USER=true + - MINIKUBE_WANTUPDATENOTIFICATION=false + - MINIKUBE_WANTREPORTERRORPROMPT=false + - MINIKUBE_HOME=$HOME + - CHANGE_MINIKUBE_NONE_USER=true + - KUBECONFIG=$HOME/.kube/config +services: + - docker +language: go go: - - 1.10.3 -services: docker + - 1.12.5 -install: true +addons: + apt: + update: true before_script: # Download kubectl, which is a requirement for using minikube. - - curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.10.0/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/ + - curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.13.0/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/ # Download minikube. - - curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.28.2/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/ - - sudo minikube start --vm-driver=none --bootstrapper=localkube --kubernetes-version=v1.10.0 --extra-config=apiserver.Authorization.Mode=RBAC --feature-gates=MountPropagation=false - # Fix the kubectl context, as it's often stale. - - minikube update-context + - curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.35.0/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/ + - mkdir -p $HOME/.kube $HOME/.minikube + - touch $KUBECONFIG + - sudo minikube start --vm-driver=none --kubernetes-version=v1.13.0 + - "sudo chown -R travis: /home/travis/.minikube/" # Wait for Kubernetes to be up and ready. - 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 # Download and initialize helm. diff --git a/openebs/ci/travis-ci.sh b/openebs/ci/travis-ci.sh index d1de0af049a..56bfcab42f5 100755 --- a/openebs/ci/travis-ci.sh +++ b/openebs/ci/travis-ci.sh @@ -28,4 +28,4 @@ rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi # download the test script from openebs/openebs and execute it. echo "**************Executing common test script from openebs/openebs**************" curl https://raw.githubusercontent.com/openebs/openebs/master/k8s/ci/test-script.sh > test-script.sh -chmod +x test-script.sh && ./test-script.sh \ No newline at end of file +chmod +x test-script.sh && ./test-script.sh