Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Estimator url prod/dev #1183

Merged
merged 9 commits into from
Jul 3, 2020
Merged

Estimator url prod/dev #1183

merged 9 commits into from
Jul 3, 2020

Conversation

Velenir
Copy link
Contributor

@Velenir Velenir commented Jul 1, 2020

Differentiate between different estimators based on master branch/tag release
Fixes #1121

@ghost
Copy link

ghost commented Jul 1, 2020

Travis automatic deployment:
https://pr1183--dexreact.review.gnosisdev.com

Copy link
Contributor

@anxolin anxolin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great solution!

.travis.yml Outdated
@@ -11,6 +11,8 @@ before_install:
# Needed to deploy pull request and releases
- sudo apt-get -y install python-pip python-dev
- pip install awscli --upgrade --user
# use production url for price estimator on master or tagged
- export PRICE_ESTIMATOR_URL=$([[ $TRAVIS_BRANCH = "master" || $TRAVIS_TAG != "" ]] && echo "production" || echo "develop")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry it was not in the description. But can we use production one ALSO in the release/* and hotfix/* branches?

We want those ones AS CLOSE AS POSSIBLE as production

@Velenir Velenir requested a review from anxolin July 2, 2020 08:41
- export PRICE_ESTIMATOR_URL=$([[
$TRAVIS_BRANCH = master || \
$TRAVIS_BRANCH = release/* || \
$TRAVIS_BRANCH = hotfix/* || \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! I guess to make sure it works, we need to merge the thing :)

We now have an open hotfix, it's a great moment to get this thing merged 👍

@@ -11,6 +11,13 @@ before_install:
# Needed to deploy pull request and releases
- sudo apt-get -y install python-pip python-dev
- pip install awscli --upgrade --user
# use production url for price estimator on master or tagged
- export PRICE_ESTIMATOR_URL=$([[
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fancy! I was thinking something way simpler, but hey, glad you are doing this :)

@Velenir Velenir merged commit 04bb98c into develop Jul 3, 2020
@Velenir Velenir deleted the prod_estimator_url branch July 3, 2020 08:25
@alfetopito alfetopito mentioned this pull request Jul 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Staging Price API Endpoint for development and PR branches
3 participants