c++travis-cibiicode

What to put in gitignore when using bii with Travis


I'm experimenting with setting up CI with Travis and bii. There is documentation available on the biicode website including an example ignore.bii file, which relates to publishing blocks.

Can anyone provide an example of what bii specific files and folders I should be ignoring in my .gitignore in a continuous integration setup?


Solution

  • It depends on the biicode project layout defined at init. If you use the "simple" layout ($ bii init -L), then you should gitignore:

    bii/
    bin/
    

    bii contains cmake, build, deps subfolders, all of them can be ignored bin contains the output binaries, typically ignored too

    If using the normal layout, actually the repo should be in project/blocks/username/blockname and the biicode auxiliary files would be in a parent folder, nothing to ignore.