How to use lcov test coverage tool with Hudson continuous integration? - hudson

In my environment developers use lcov from command line when working with source code's module tests.
I would like to know if there is a way to easily add reports from lcov to Hudson's builds? I would ease and automate the whole procedure of gathering test source code coverage.

If you are looking to publish the generated HTML reports along with your job/builds, have a look at the htmlpublisher plugin: http://wiki.hudson-ci.org/display/HUDSON/HTML+Publisher+Plugin
This allows you to specify multiple html directories and index files to be made accessible from the job or build page.

Have a look at the xUnit Plugin. I found the info in this thread. It has more information for using Hudson to build cpp projects.

Related

How to build ISPAC using VSTS

It appears that building ISPAC using MSBuild is near impossible. I'm hoping I can find a way to create ISPACs in the VSTS build processes, but it doesnt appear to be straight forward.
there is a VSTS task by ToxicGlobe
https://github.com/ToxicGlobe/VSTS-SSIS-Extension
However support seems minimum, and there isnt alot of traction.
how does the real world create ISPACs in a common CI process?
There isn’t such build-in task available in VSTS, but you can refer to the source code of VSTS-SSIS-Extension to custom the build/release task to meet your requirement through VSTS extension: Add a build task
I use this command:
devenv SolutionName.sln /Rebuild
In the Bin folder of the project, you are going to find the .ispac file, Remember to include the path of devenv.exe in the System Variable "Path"

Hudson post build tasks

I have an issue in hudson post build tasks,
I am using two plugin FTP Upload(which uploads artifacts to FTP server) and Post Build Tasks(which execute my external batch file).
Now my issue is that Post Build Tasks executes before FTP Upload, that should not happened, I want to execute batch file after completion of FTP upload. See my attached screenshot for reference. Any help will be appreciated.
Can't you just use FTP to upload the file in your batch file? Then you have full control of the ordering?
Later versions of Jenkins (after April 2012) allow you to reorder post-build actions as you wish.
There is also the Flexible Publish Plugin that allows ordering the post-build actions through conditions.
Is there a reason you are sticking with Hudson?
Edit
From official sources:
JIRA issues indicating this problem
https://issues.jenkins-ci.org/browse/JENKINS-7408
https://issues.jenkins-ci.org/browse/JENKINS-9381
Resolution by Kohsuke Kawaguchi (creator of Hudson/Jenkins). Unfortunately, the resolution is in Jenkins.
https://groups.google.com/forum/?fromgroups#!topic/jenkinsci-dev/UQLvxQclyb4
So to answer your question directly: it is impossible in Hudson. Only thing you could try is workarounds with multiple jobs linked up. Let me know if this is something you would consider.

How do I deliver a new build system in SublimeText3?

I have built a sublimetext3 plugin. Now I have added a build tool. To use this build tool, the user has to go to Tools->Build System->New Build System.
I consider this an extra hassle for the user. Is there a way to package it and deliver it along with the plugin?
Simply add the .sublime-build file (and its dependencies like shell scripts) to the files in your ST package. Unless there's a conflict with another build system, the user can then build using the keyboard shortcut.
Build Systems

Jenkins File Viewer

I'm in the process of setting up our builds on our new Jenkins CI server. One thing I've noticed, which I don't really like is that I can't see a difference in the changes.
Jenkins knows what files have been modified/deleted but I cannot see where I can see the diff of those files?
Jenkins does not calculate diffs itself, but instead lets you link to a tool that does, such as a diff on GitHub, or a ViewSVN instance etc.
For example, on Apache's Jenkins instance, you can see a "ViewSVN" link next to each change:
https://builds.apache.org/job/ActiveMQ/changes
It depends on your SCM and the tool you normally use for browsing diffs, but there should be a Jenkins plugin available for you.
If not, it should be trivial to write your own :)

The flow to pack php/js/css and deploy to web server

I'm developing an website now.
I found there are lots steps to do before deploying the code to web server.
e.g.
1. compact JS/CSS/HTML
2. Run unit test if any
3. Test code locally
4. Upload code to web server
Not sure if anyone could share your experiences on this process? Or how does facebook/google/yahoo ... do this?
Deployment strategy entirely depends on your project. None of those steps (except uploading code to web-server of course) is mandatory for running PHP web-site. Those steps appears when you are trying to:
Utilize build system (for configs generation, JS and CSS minification, etc);
Write unit-tests and (probably) run continuos integration;
Establish quality assurance by having QA go/no go before deployment of new release.
Needless to mention that to make, for instance, JS/CSS minification or perform unit-tests execution, you need to implement ones first.
That's why I'd not advice you to follow cargo-cult and copy all features of smbd's project (even facebook or google). Instead just follow the project needs and build your own deployment strategy.