Skip to content

Commit

Permalink
Merge pull request #1181 from evan2645/remove-minikube-tests-in-v0.8-…
Browse files Browse the repository at this point in the history
…branch

Remove minikube-based k8s tests from v0.8 branch
  • Loading branch information
evan2645 authored Oct 9, 2019
2 parents 50c8c07 + c06a39e commit aa6bb82
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,26 +91,11 @@ jobs:
before_script:
# Decrypt credentials needed to log into gcr registry
- openssl aes-256-cbc -K $encrypted_b48f9e852489_key -iv $encrypted_b48f9e852489_iv -in .travis/spire-travis-ci.json.enc -out .travis/spire-travis-ci.json -d
# Download stable kubectl
- curl -s -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 latest minikube
- curl -s -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
# Start up minikube
- sudo minikube start --vm-driver=none --extra-config=apiserver.service-account-signing-key-file=/var/lib/minikube/certs/sa.key --extra-config=apiserver.service-account-key-file=/var/lib/minikube/certs/sa.pub --extra-config=apiserver.service-account-issuer=api --extra-config=apiserver.service-account-api-audiences=api,spire-server --extra-config=apiserver.authorization-mode=RBAC

# Make sure kubectl configuration is up to date
- sudo chown -R $USER.$USER ~/.kube
- sudo chown -R $USER.$USER ~/.minikube
- minikube update-context
# Wait for stuff to become 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
script:
# Build spire images
- eval $(minikube docker-env) && make spire-images
# Run systems tests
- examples/k8s/test-all.sh
- make spire-images
# Publish images
- eval $(minikube docker-env) && .travis/publish-images.sh
- .travis/publish-images.sh

notifications:
slack:
Expand Down

0 comments on commit aa6bb82

Please sign in to comment.