Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Travis deployment config consistent #408

Merged
merged 1 commit into from
Feb 24, 2017
Merged

Conversation

dsingleton
Copy link
Contributor

@dsingleton dsingleton commented Feb 24, 2017

With other GDS FE repos, see:
alphagov/govuk_frontend_toolkit#385

Steps specified in before_deploy are only run if a deployment is
triggered [1], which will only happen on master, which can't be
done by a user without write perms.

[1] Travis before_deploy documentation

@36degrees
Copy link
Contributor

Did you mean to link to the before_deploy documentation in the commit message?

Copy link
Contributor

@36degrees 36degrees left a comment

Choose a reason for hiding this comment

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

Minor comment about a possibly not-quite-right comit message, otherwise 👌

With other GDS FE repos, see:
alphagov/govuk_frontend_toolkit#385

Steps specified in before_deploy are only run if a deployment is
triggered [1], which will only happen on master, which can't be
done by a user without write perms.

[1] [Travis before_deploy documentation](https://docs.travis-ci.com/user/deployment/npm/#Running-commands-before-and-after-deploy)
@dsingleton dsingleton force-pushed the travis-deploy-install branch from 55c84db to 096cf1b Compare February 24, 2017 13:35
@dsingleton
Copy link
Contributor Author

Did you mean to link to the before_deploy documentation in the commit message?

I did - bad copy and paste. Fixed in the commit and PR. 👍

@gemmaleigh
Copy link
Contributor

gemmaleigh commented Feb 24, 2017

LGTM, thanks @dsingleton and @36degrees

@gemmaleigh gemmaleigh merged commit 808c21e into master Feb 24, 2017
dsingleton added a commit that referenced this pull request Mar 7, 2017
This was broken in #408, where the setup was moved to `before_deploy`
to avoid permission issues when running PR tests in a way consistent
with other alphagov apps.

Previously that was guarded by a shell if, which was remvoved, but a
bit at the end was left and is breaking deployment builds. :(
gemmaleigh added a commit that referenced this pull request Mar 7, 2017
Move this back to before_install, otherwise it runs more than once (as
there is more than one deploy provider).

This reverts the changes made in #404:
#408
@gemmaleigh gemmaleigh deleted the travis-deploy-install branch April 7, 2017 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants