Is there a standard skeleton or instructions for creating an open source Symfony2 package complete with travis-ci and composer?

If they are, then they must be very well hidden ... I tried Google search, looking through the maze of Symfony docs, asking about twitter and search here, but did not find anything useful.

Block 1: Where to create your own open source package?

If I want my package to be his own project on github, with instructions for people to add it to their deps list so that it falls into the suppliers / packages directory, should I create the package inside the provider / packages / initially? Should I make a package in a new Symfony2 setup, which is not version controlled, but only run "git init" in the bundle that I want to provide? (This is what I did). I am surprised that there is no better guide for this.

Block 2: What / where should my test bootstrap be?

Again, I could not find any best practice for this, so I ended up looking at several existing packages on github that have integration with travis-ci and see if there was a consistent way to provide boostrap. But it seems not (of those that I have seen, at least). I gathered pieces and pieces of what I found in a daze, but without much luck. The test suite runs locally because my (gitignored) phpunit.xml points to the path to Symfony src, but it’s not entirely clear how autoload is to build travis.

You can see my package installation here .

And my, rather pathetic, travis is building here .

I really appreciate the push in the right direction. Thanks.

+4
source share

Source: https://habr.com/ru/post/1393850/


All Articles