-
Notifications
You must be signed in to change notification settings - Fork 41
Conversation
Travis automatic deployment: |
There was a problem hiding this 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") |
There was a problem hiding this comment.
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
- export PRICE_ESTIMATOR_URL=$([[ | ||
$TRAVIS_BRANCH = master || \ | ||
$TRAVIS_BRANCH = release/* || \ | ||
$TRAVIS_BRANCH = hotfix/* || \ |
There was a problem hiding this comment.
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=$([[ |
There was a problem hiding this comment.
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 :)
Differentiate between different estimators based on master branch/tag release
Fixes #1121