Skip to content

Commit

Permalink
travis
Browse files Browse the repository at this point in the history
  • Loading branch information
jakolehm committed Mar 29, 2019
1 parent 9b9a7f5 commit 1f4d030
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions e2e/travis.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/bin/bash
# shellcheck disable=SC2039 disable=SC1091

set -ue

source ./util.sh

ssh-keygen -t rsa -f ~/.ssh/id_rsa_travis -N ""
cat ~/.ssh/id_rsa_travis.pub > ~/.ssh/authorized_keys
chmod 0600 ~/.ssh/authorized_keys
Expand All @@ -10,16 +13,23 @@ ifconfig

envsubst < e2e/cluster.yml > cluster.yml

bundle exec bin/pharos-cluster
bundle exec bin/pharos-cluster -v
bundle exec bin/pharos-cluster version
bundle exec bin/pharos-cluster up -d -y -c cluster.yml
bundle exec bin/pharos-cluster ssh --role master -c cluster.yml -- kubectl get nodes
bundle exec bin/pharos
bundle exec bin/pharos -v
bundle exec bin/pharos version
bundle exec bin/pharos up -d -y -c cluster.yml
bundle exec bin/pharos ssh --role master -c cluster.yml -- kubectl get nodes
bundle exec bin/pharos kubeconfig -c cluster.yml > kubeconfig.e2e

# Verify that workloads start running
curl -sLO https://storage.googleapis.com/kubernetes-release/release/v1.13.5/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv kubectl /usr/local/bin/
export KUBECONFIG=./kubeconfig.e2e

while ! kubectl get nodes | grep " Ready "; do
echo "waiting for node to be ready ..."
sleep 5
done
echo "Checking that ingress-nginx is running:"
(retry 30 pods_running "app=ingress-nginx" "ingress-nginx") || exit $?

bundle exec bin/pharos-cluster up -d -y -c cluster.yml
bundle exec bin/pharos-cluster reset -d -y -c cluster.yml
# Test re-up
bundle exec bin/pharos up -y -c cluster.yml
# Test reset
bundle exec bin/pharos reset -d -y -c cluster.yml

0 comments on commit 1f4d030

Please sign in to comment.