Skip to content

Commit a42e58a

Browse files
Merge pull request #367 from CloudBoost/fix-failing-tests
Update travis.yml env with REDIS_HOST and MONGO_HOST
2 parents 4865822 + b9efb0a commit a42e58a

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.travis.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ install:
5151
-e DOMAIN=$DOMAIN
5252
-e FROM_EMAIL=$FROM_EMAIL
5353
-e FROM_NAME=$FROM_NAME
54+
-e REDIS_HOST=$REDIS_HOST
55+
-e MONGO_HOST=$MONGO_HOST
5456
-p 4730:4730 -it --link redis:redis --link mongo:mongo -d cloudboost/cloudboost:2.0.$TRAVIS_BUILD_NUMBER
5557
- sleep 5s
5658
- docker logs cloudboost
@@ -62,8 +64,8 @@ after_success:
6264
- if [ "$TRAVIS_BRANCH" == "release" ]; then
6365
if [ ! -d "$HOME/google-cloud-sdk/bin" ]; then
6466
rm -rf $HOME/google-cloud-sdk;
65-
export CLOUDSDK_CORE_DISABLE_PROMPTS=1;
66-
curl https://sdk.cloud.google.com | bash;
67+
export CLOUDSDK_CORE_DISABLE_PROMPTS=1;
68+
curl https://sdk.cloud.google.com | bash;
6769
source /home/travis/google-cloud-sdk/path.bash.inc;
6870
fi
6971

@@ -88,8 +90,8 @@ after_success:
8890
- if [ "$TRAVIS_BRANCH" == "master" ]; then
8991
if [ ! -d "$HOME/google-cloud-sdk/bin" ]; then
9092
rm -rf $HOME/google-cloud-sdk;
91-
export CLOUDSDK_CORE_DISABLE_PROMPTS=1;
92-
curl https://sdk.cloud.google.com | bash;
93+
export CLOUDSDK_CORE_DISABLE_PROMPTS=1;
94+
curl https://sdk.cloud.google.com | bash;
9395
source /home/travis/google-cloud-sdk/path.bash.inc;
9496
fi
9597

@@ -98,7 +100,7 @@ after_success:
98100
gcloud --quiet components update kubectl;
99101

100102
docker push cloudboost/cloudboost:master-2.0.$TRAVIS_BUILD_NUMBER;
101-
103+
102104
echo $GCLOUD_SERVICE_KEY_STG | base64 --decode -i > ${HOME}/gcloud-service-key.json;
103105
gcloud auth activate-service-account --key-file ${HOME}/gcloud-service-key.json;
104106

@@ -130,4 +132,4 @@ deploy:
130132

131133
#Notify Team on Slack
132134
notifications:
133-
slack: hackerbaycompany:gm7nWJDLDtBRyF75VKLKOoMW
135+
slack: hackerbaycompany:gm7nWJDLDtBRyF75VKLKOoMW

0 commit comments

Comments
 (0)