This is an automated email from the ASF dual-hosted git repository.

chesnay pushed a commit to branch release-1.8
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/release-1.8 by this push:
     new 3123fa2  [hotfix][travis] Fix e2e setup issues
3123fa2 is described below

commit 3123fa2d082e298021cdab293e784bd3b7b21b92
Author: Chesnay Schepler <[email protected]>
AuthorDate: Fri Mar 22 12:29:10 2019 +0100

    [hotfix][travis] Fix e2e setup issues
---
 .travis.yml             | 10 ++++++++++
 tools/travis/nightly.sh |  2 ++
 2 files changed, 12 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index 8de8245..a236eb6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -45,12 +45,22 @@ env:
     # Global variable to avoid hanging travis builds when downloading cache 
archives.
     - MALLOC_ARENA_MAX=2
     - DOCKER_COMPOSE_VERSION=1.22.0
+    - CHANGE_MINIKUBE_NONE_USER=true
 
 before_script:
    - "gem install --no-document --version 0.8.9 faraday "
    - "export -f travis_nanoseconds"
    - "export -f travis_time_start"
    - "export -f travis_time_finish"
+  # Download kubectl, which is a requirement for using minikube.
+   - curl -Lo kubectl 
https://storage.googleapis.com/kubernetes-release/release/$(curl -s 
https://storage.googleapis.com/kubernetes-release/release/stable.txt)/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.25.2/minikube-linux-amd64 
&& chmod +x minikube && sudo mv minikube /usr/local/bin/
+   - sudo minikube start --vm-driver=none --kubernetes-version=v1.9.0
+  # Fix the kubectl context, as it's often stale.
+   - minikube update-context
+  # 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
 
 # Install maven 3.2.5 since trusty uses 3.3.9 for which shading is broken
 before_install:
diff --git a/tools/travis/nightly.sh b/tools/travis/nightly.sh
index 1b547ad..c742931 100755
--- a/tools/travis/nightly.sh
+++ b/tools/travis/nightly.sh
@@ -25,6 +25,8 @@ if [ -z "${HERE}" ] ; then
        exit 1  # fail
 fi
 
+SCRIPT=$1
+
 ARTIFACTS_DIR="${HERE}/artifacts"
 
 mkdir -p $ARTIFACTS_DIR || { echo "FAILURE: cannot create log directory 
'${ARTIFACTS_DIR}'." ; exit 1; }

Reply via email to