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

Auto-Deployment (without Static Delivery Changes) #152

Merged
merged 24 commits into from
Sep 5, 2018

Conversation

trieloff
Copy link
Contributor

@trieloff trieloff commented Sep 5, 2018

This is a fix for #135 and obsoletes #130. It does no longer have a dependency on #112, as this might take a bit longer to be discussed.


The default for hlx deploy is hlx deploy --auto, which will set up a CI/CD pipeline for the given repository. To do this, we depend on:

(this branch is based on both branches to avoid later merge conflicts)

The rough process will look like this:

  • hlx deploy gets a --circleci-auth options
  • curl -X "POST" "https://circleci.com/api/v1.1/project/github/trieloff/helix-helpx/follow"
  • curl -X "POST" "https://circleci.com/api/v1.1/project/github/trieloff/helix-helpx/envvar" -H 'Accept: application/json' -H 'Content-Type: application/json' -d $'{"name": "HLX_WSK_AUTH","value": "FOO"}' (repeat for all arguments that are relevant to hlx deploy and hlx strain)
  • trigger a new build if CI has already been set up
  • tune the default .circleci/config.yaml

@codecov-io
Copy link

codecov-io commented Sep 5, 2018

Codecov Report

Merging #152 into master will increase coverage by 0.59%.
The diff coverage is 82.52%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #152      +/-   ##
==========================================
+ Coverage   82.24%   82.83%   +0.59%     
==========================================
  Files          21       22       +1     
  Lines        1098     1177      +79     
  Branches      125      142      +17     
==========================================
+ Hits          903      975      +72     
- Misses        195      202       +7
Impacted Files Coverage Δ
src/gitutils.js 65.21% <65.21%> (ø)
src/deploy.cmd.js 83.09% <86.44%> (+5%) ⬆️
src/deploy.js 89.47% <90.47%> (+1.23%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e707ff1...62bb71d. Read the comment docs.

@trieloff
Copy link
Contributor Author

trieloff commented Sep 5, 2018

This pull request introduces 1 alert when merging 5870dec into e707ff1 - view on LGTM.com

new alerts:

  • 1 for Superfluous trailing arguments

Comment posted by LGTM.com

@trieloff trieloff merged commit 8617560 into master Sep 5, 2018
@tripodsan
Copy link
Contributor

thanks @trieloff for squashing the 24 commits :-) really appreciate!

tripodsan pushed a commit that referenced this pull request Sep 6, 2018
- fixes #135

* Refactor: create GitUtils utility class

* added --circleci-auth option for hlx deploy --auto #135

* follow project on CircleCI #135

* Set build environment variables #135

* hlx deploy now requires fastly, wsk, and circleci settings

* check for existence of config.yml before starting auto-deployment

* Actually pass fastly parameters into command executor

* Added default CircleCI configs

* fix test

* bring up test coverage

* Don't log fastly auth

* added integration test (with fixtures) for auto-deploy

* lint

* restore state after testing

* lint

* fix tests

* Resolve conflicts

* fix lint

* fix failing test

* fix another failing test

* Fix for deploy command test failure

* increase timeouts

* fix linting errors

* revert partial refactor
@tripodsan tripodsan deleted the auto-deploy-master branch October 15, 2018 23:55
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