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
Feature/rewrite #659
Feature/rewrite #659
Conversation
Wow, @cristovaov, this is really fantastic. Thanks! I've been thinking for a while about doing exactly this in some fashion. I like the idea of having areas broken up into functions. It definitely helps readability and should help when troubleshooting or extending specific areas as well. I also had no idea that shellcheck existed, which seems great on the surface. I'm going to take a closer look at this soon and do some proper testing. Overall it seems to be on the right path already. |
@jeremyfelt great, this makes me happy :) I tried to follow the provision flow of the current script as close as possible so tests should be similar. Shellcheck is a nifty tool, the recommendations/guidelines you get are mint. Thanks for the feedback! ~ |
39171ac
to
f709eac
Compare
@jeremyfelt Hi Jeremy, as I updated my fork I've cleaned this pr to one commit. The provision script has been tidied up too. Cheers~ |
f709eac
to
7d81827
Compare
I really love this. For example: GitHub token (due to bad differences between Maybe we can get this in within a week?! So I can update #611 for merge. |
@cfoellmann Thank you! For now I am tracking any changes to |
I will do some testing now. This would make it easier for you. No need to waste your time on keeping track of the changes in |
we should merge master into develop + develop into feature/phpbrew (regularly) to keep everything in line. @cfoellmann - We should get to a point where we're merging develop into master more frequently. Though any time that does happen (beyond some recent accidents 😁), it should correspond with a release. I definitely think we should get this PR into develop soon. At that point we should work on testing upgrades from the current master to the current develop so that we can confidently merge and call it 1.3.0. Ideally we have quicker incremental updates, but you know... :) On a side note: I was wanting to write this week proposing that I would do the same for the master branch. It would prevent conflicts when merging Develop into Master if this PR gets accepted. @cristovaov - I don't think we'll have much trouble merging develop into master, so no other version of the PR is necessary. If we do run into issues, I'll take ownership of resolving those conflicts. Thanks though! I tested this as well yesterday and was really happy with things. Everything went smoothly on a fresh box and I haven't noticed any issues yet. A few notes from my end:
|
@jeremyfelt I am with you on aiming for 1.3. On the other hand you misunderstood me. It meant to "rebase" @cristovaov integrate 698f4c7 into your PR, please. |
@cfoellmann Ahh, excellent - I did misunderstand. I'll work on that today. There were a few accidental merges to master on my end. :) |
@jeremyfelt Noted and I agree with them. Will bring back the original comments. For the comment formatting, I'd like to follow the suggestion of doing this in a future PR and stick to the original formatting in this PR. For the @cfoellmann I'll go through the provisioning script at 9162a56 I'll ping you for review when I'm done. Thank you for the positive feedback! |
fcca60e
to
50baf0d
Compare
@jeremyfelt @cfoellmann ping ;) |
1st test: Results
Everything works out nice. the grunt build process is broken for me a long time now. So nothing new here. |
I actually have some thoughts about that. I can open an issue for this if you'd like. |
If you have the same problem and even an idea to fix it open a dedicated issue. |
I updated my old vvv with the new provision.sh and it works nicely. |
232bb36
to
d7f9c4e
Compare
updated with latest changes in the provisioning script. any ETA on the merge? |
d7f9c4e
to
60525f9
Compare
Latest update: [9aaed3c] Avoid browser warnings for "site URL does not match SSL certificate." [fcca60e] Abort if no network connection [bc6caae] Update rewrite to match 'provision.sh' @ 9162a56 [9b90a3d] Revert package install to original [a21fdaa] Blank operations: trim trailing spaces, convert TABS to space [ea233a9] Revert to original comments [a597888] rewrite makes script more modular and should improve readability
60525f9
to
703ac34
Compare
Ok, I provisioned with this from scratch and used it for about a week. I'm going to merge it into Thanks @cristovaov! |
Rewrite provisioning script to make use of individual functions
@jeremyfelt From memory, network detection will now exit the script straight away rather than continue until the end of it. A comparison side by side of the functions could perhaps help. Would it be an idea for me to write a page in VVV's wiki about this provisioning script? |
Hi there,
I want to submit the following enhancements to VVV to the provisioning script.
I believe putting everything in functions allows for better structure and modularity/flexibility of the provisioning flow as certain steps can more easily be optional.
Other changes include:
Along commits, the script has been checked against shellcheck and incorporates latest changes (a02654c). It didn't give me any merge conflicts locally from feature branch to develop branch.
By uncommenting line 730 and line 776, you can run the script with bash debugging features on.
I'd also would like to discuss further enhancements at a later point.
Cheers,
-Cris.