Skip to content
This repository was archived by the owner on Jul 18, 2024. It is now read-only.

Commit c5f95fb

Browse files
committed
Fix scripts to check for PR
1 parent 4f5e255 commit c5f95fb

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

scripts/bx_auth.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
BLUEMIX_ORG="Developer Advocacy"
44
BLUEMIX_SPACE="dev"
55

6-
if [[ -z "$BLUEMIX_AUTH" ]]; then
6+
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
77
echo -e "\033[0;33mFork detected; not authenticating to Bluemix.\033[0m"
88
exit 0
99
fi

scripts/install_bx.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash -e
22

3-
if [[ -z "$BLUEMIX_AUTH" ]]; then
3+
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
44
echo -e "\033[0;33mPull Request detected; not installing extra software.\033[0m"
55
exit 0
66
fi

tests/test-kubeadm-dind-cluster.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ verify_deploy(){
7070

7171
main(){
7272

73-
if [[ -z "$BLUEMIX_AUTH" ]]
73+
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]
7474
then
7575
if ! setup_dind-cluster; then
7676
test_failed
@@ -82,7 +82,7 @@ main(){
8282
test_passed
8383
fi
8484
else
85-
echo -e "\033[0;33mBluemix Auth detected; not running kubeadm-dind-cluster test.\033[0m"
85+
echo -e "\033[0;33mNot a Pull Request; not running kubeadm-dind-cluster test.\033[0m"
8686
exit 0
8787
fi
8888
}

tests/test-kubernetes.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ verify_deploy(){
7474
for IP in $IPS; do
7575
while true
7676
do
77-
code=$(curl -sw '%{http_code}' http://"$IP":"$NODEPORT" -o /dev/null)
77+
code=$(curl -sw '%{http_code}' http://"$IP":30080 -o /dev/null)
7878
if [ "$code" = "200" ]; then
7979
echo "Account Summary is up."
8080
break
@@ -91,8 +91,8 @@ verify_deploy(){
9191
}
9292

9393
main(){
94-
if [[ -z "$BLUEMIX_AUTH" ]]; then
95-
echo -e "\033[0;33mFork detected; not running Bluemix Container Service test.\033[0m"
94+
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
95+
echo -e "\033[0;33mPull Request detected. Not running Bluemix Container Service test.\033[0m"
9696
exit 0
9797
fi
9898

0 commit comments

Comments
 (0)