New page on automated builds
- xenos
- Member
- Posts: 1118
- Joined: Thu Aug 11, 2005 11:00 pm
- Libera.chat IRC: xenos1984
- Location: Tartu, Estonia
- Contact:
New page on automated builds
I have created a new wiki page: Automated Build Using CircleCI
This is a tutorial how to set up GitHub and CircleCI to automatically build your osdev project on every push to the repository, perform tests and publish the results. Please feel free to improve on it, and of course try it out if you like It turned out to be easier than I expected. Here is a working example:
https://github.com/xenos1984/NOS
https://github.com/xenos1984/NOS/blob/master/circle.yml
https://github.com/xenos1984/NOS/blob/m ... olchain.sh
This is a tutorial how to set up GitHub and CircleCI to automatically build your osdev project on every push to the repository, perform tests and publish the results. Please feel free to improve on it, and of course try it out if you like It turned out to be easier than I expected. Here is a working example:
https://github.com/xenos1984/NOS
https://github.com/xenos1984/NOS/blob/master/circle.yml
https://github.com/xenos1984/NOS/blob/m ... olchain.sh
Re: New page on automated builds
This looks cool, how long does it take to build your cross compiler on CircleCI's servers?
com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonWindowNotFocusedState
Compiler Development Forum
Compiler Development Forum
- jeaye
- Posts: 8
- Joined: Tue May 24, 2016 6:48 pm
- Libera.chat IRC: jeaye
- Location: San Francisco
- Contact:
Re: New page on automated builds
About 25 minutes, based on https://circleci.com/gh/xenos1984/NOS ; it ends up being cached though, so it's only built once, assuming it succeeds, and it's re-used after that.
Thanks for the new page, XenOS. The more quality docs we have on continuous integration, the better.
Thanks for the new page, XenOS. The more quality docs we have on continuous integration, the better.
Re: New page on automated builds
Hi, why is CircleCI any better than Travis/Gitlab ?
Why should I use it ?
I'd generalise your article for " how to do CI with is Dev" and put a tiny part of it specialised in CircleCI.
Why should I use it ?
I'd generalise your article for " how to do CI with is Dev" and put a tiny part of it specialised in CircleCI.
- xenos
- Member
- Posts: 1118
- Joined: Thu Aug 11, 2005 11:00 pm
- Libera.chat IRC: xenos1984
- Location: Tartu, Estonia
- Contact:
Re: New page on automated builds
I don't think it's better than Travis/Gitlab. The only reason why I used CircleCI is that I participate also in a larger open source project, and that one uses CircleCI, so that I'm more or less familiar with the setup. But I guess using any other CI would be just as easy.
In fact, I already thought about trying other CI providers as well, making them work with my project and then writing wiki pages also for those, nicely bundled in a category.
In fact, I already thought about trying other CI providers as well, making them work with my project and then writing wiki pages also for those, nicely bundled in a category.
- jeaye
- Posts: 8
- Joined: Tue May 24, 2016 6:48 pm
- Libera.chat IRC: jeaye
- Location: San Francisco
- Contact:
Re: New page on automated builds
I use TravisCI, since I know it and it works. The benefit of CircleCI, over TravisCI, which I've seen, is that CircleCI allows you to SSH into the box which runs your tests so you can troubleshoot. Toying with Travis' yaml, committing, pushing, and waiting, is no fun when trying to debug your setup.
With that said, it hasn't been enough to bring me from TravisCI.
With that said, it hasn't been enough to bring me from TravisCI.
Re: New page on automated builds
Sadly you have to use that Unix makecrap.sh and similar.
Re: New page on automated builds
There's a wiki entry for Unit_Testing but it seems quite barebones.
Has anyone here set up unit tests for their OS that runs through a CI service and reports on Git commits? I don't really know the best way to go about it.
Has anyone here set up unit tests for their OS that runs through a CI service and reports on Git commits? I don't really know the best way to go about it.
com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonWindowNotFocusedState
Compiler Development Forum
Compiler Development Forum
- dchapiesky
- Member
- Posts: 204
- Joined: Sun Dec 25, 2016 1:54 am
- Libera.chat IRC: dchapiesky
Re: New page on automated builds
matt11235 wrote:There's a wiki entry for Unit_Testing but it seems quite barebones.
Has anyone here set up unit tests for their OS that runs through a CI service and reports on Git commits? I don't really know the best way to go about it.
While the actual unit tests would be OS specific....
I can recommend CMake/CTest & CDash
see www.cmake.org
Example live site: Visualization Toolkit (VTK) CI Dashboard -- https://open.cdash.org/index.php?project=VTK
CMake to build your code/unit tests
CTest to run the tests (including downloading latest git repos, patching, etc...)
CDash to act as a CI dashboard of said tests...
If you take the time to work with it - it can be extremely powerful... for example
I have added clang/llvm static analysis of code and post metrics to CDash
Probably the trickiest part is setting QEMU for example - to save serial output to a file and to actually auto shutdown after N seconds or system reset (there is a thread in the forum about this...)
Altogether these are pretty damn good
cheers
Plagiarize. Plagiarize. Let not one line escape thine eyes...