Skip to content

Commit

Permalink
Adding support to enable/disable a provider
Browse files Browse the repository at this point in the history
  • Loading branch information
victoralfaro-dotcms committed Jun 23, 2020
1 parent ea02308 commit 9e51a8a
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 55 deletions.
26 changes: 26 additions & 0 deletions checkProvider.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

CLOUD_PROVIDERS=(travis github)
currentProvider=${1}

if [[ -z "${currentProvider}" ]]; then
echo "Current cloud provider was not specified, aborting..."
exit 1
fi

echo "Supported providers: [${CLOUD_PROVIDERS[@]}]"
echo "Checking for ${currentProvider}"
found=false
for p in "${CLOUD_PROVIDERS[@]}"; do
if [[ "${p}" == "${currentProvider}" ]]; then
found=true
break
fi
done

if [[ ${found} == false ]]; then
echo "Provider ${currentProvider} is not supported, aborting..."
exit 1
fi

echo "Using ${currentProvider} as cloud provider"
5 changes: 0 additions & 5 deletions docker/tests/curl/curl-service-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ services:
environment:
databaseType:
EXTRA_PARAMS:
# PROVIDER_DB_USERNAME:
# PROVIDER_DB_PASSWORD:
# PROVIDER_DB_MAXCONNS: 60
# PROVIDER_DB_DNSNAME: database
# PROVIDER_ELASTICSEARCH_DNSNAMES: elasticsearch
WAIT_SIDECAR_FOR: 140
depends_on:
- sidecar
Expand Down
5 changes: 0 additions & 5 deletions docker/tests/curl/curl-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ services:
PULL_REQUEST:
GITHUB_USER:
GITHUB_USER_TOKEN:
# PROVIDER_DB_USERNAME:
# PROVIDER_DB_PASSWORD:
# PROVIDER_DB_MAXCONNS: 60
# PROVIDER_DB_DNSNAME: database
# PROVIDER_ELASTICSEARCH_DNSNAMES: elasticsearch
WAIT_SIDECAR_FOR: 140
DOT_CICD_PATH:
DOT_CICD_CLOUD_PROVIDER:
Expand Down
45 changes: 0 additions & 45 deletions pipeline/travis/core/printStoragePaths.sh

This file was deleted.

0 comments on commit 9e51a8a

Please sign in to comment.