build-automation

How to get Cobertura to fail M2 build for low code coverage

 ̄綄美尐妖づ 提交于 2019-12-30 04:31:06
问题 I'm trying to configure my WAR project build to fail if the line or branch coverage is below given thresholds. I've been using the configuration provided on page 455 of the excellent book Java Power Tools, but with no success. Here's the relevant snippet of my project's Maven 2 POM: <build> ... <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.2</version> <configuration> <check> <!-- Per-class thresholds --> <lineRate>80<

Bumping version numbers for new releases in associated files (documentation)

情到浓时终转凉″ 提交于 2019-12-30 03:15:27
问题 I would be interested to in knowing how you out there handle the bumping the version number for new releases issue. How do you handle the version number in associated files like man pages, etc. The software is build with the gnu tool chain so autoconf, automake, etc are available and used for the version number of the application. So that information can be reused. git is used as a vcs. One possibility would be introduce an extra, new target in Makefile.am that does a sed/awk to replace

Build NuGet Package automatically including referenced dependencies

久未见 提交于 2019-12-28 04:51:29
问题 I want to run a local/internal NuGet repository. I think I've figured out how to "reuse" existing NuGet packages by including them in a dummy project using NuGet and scanning the package file to grab my locally-cached .nupkg files, but... How do you create a nuget package ( .nupkg ) from a project, automatically including all dll dependencies and not just those grabbed via NuGet? Specifically: Create a solution Add a new Project Add references to various .dll files/other projects <-- this is

Nested ExternalProject_Add with shared dependencies

大兔子大兔子 提交于 2019-12-24 07:35:51
问题 I'm trying to apply ExternalProject_Add to automate the installation of dependencies of a mid sized C project. Things were going well until I had to install a library which uses ExternalProject_Add to install one of its dependencies, which also happen to be used by my own project. It would be nice if I could avoid having to rebuild this library, but instead use the already installed version. Is there a good way to accomplish this? Can I tell ExternalProject to download stuff only if some

What's the best building tool for java besides ant?

时间秒杀一切 提交于 2019-12-24 02:17:27
问题 Somehow I don't like IDE very much, but I don't find a particular good tool to build java applications from source yet. I welcome all kinds of feedbacks! 回答1: Maven is another alternative, but I don't know that I'd call it "best". Ant has the virtue of simplicity if used properly. I find Maven to be heavier and less penetrable. 回答2: Ant and Maven are to two alternatives that are usually used. What is considered best will differ from project to project and also often developer to developer

TFS 2010 cloaking in the build definition file - error

∥☆過路亽.° 提交于 2019-12-24 02:09:57
问题 I am using TFS 2010, and I am trying to test the cloaking functionality. I have nearly identical build definition files for each environment (dev, qa, prod) - they only differ (for testing purposes) in that I want to cloak a particular directory for dev and qa, and then make it active for prod. I did this (edit build definition - workspace - choose directories and if they are active or cloaked.) but I get an error (Could not find a part of the path 'CloakTest\CloakFile.txt') when the build

Grunt task to wait for exit

 ̄綄美尐妖づ 提交于 2019-12-23 17:03:38
问题 I've got a task that starts IIS Express async, and to stop IIS I have to fire a grunt event. I would like to make a task that just waits until i press ctrl-c and then fires that event. I've tried doing this: grunt.registerTask("killiis", function(){ process.stdin.resume(); var done = this.async(); grunt.log.writeln('Waiting...'); process.on('SIGINT', function() { grunt.event.emit('iis.kill'); grunt.log.writeln('Got SIGINT. Press Control-D to exit.'); done(); }); }); The task stops grunt

IIS site and nant/nantcontrib?

*爱你&永不变心* 提交于 2019-12-23 13:33:09
问题 is it possible to manage IIS web applications with NAnt? For example stop or start it? 回答1: Maybe you can use exec task to execute iisreset -stop iisreset -start EDIT : And this VBS might help for stopping/starting WebApplications under IIS Here is the accespted solution to stop a website with nant task on IIS : <target name="stopSite"> <exec program="cscript.exe"> <arg value="C:\windows\system32\iisweb.vbs" /> <arg value="/stop" /> <arg value="test" /> </exec> </target> 回答2: Nant has the

How do I use continuous integration with an Eclipse project?

风格不统一 提交于 2019-12-23 10:59:23
问题 I've been using maven2 and hudson for a while to do my continuous integration, but I find that Eclipse and Maven do not play well together. Sure there's a plugin, but it's cranky to mash the maven project into something that eclipse likes and the build times and unit test are too long. I'm considering switching back to a pure eclipse project with no ant and no maven involved. With the infinitest plugin and possible the JavaRebel agent, it would give me a very fast build-deploy-test cycle.

Failed automated Android UI-Tests on Jenkins-Server due to complex lib-project dependencies of the main project(s)

試著忘記壹切 提交于 2019-12-23 10:28:51
问题 Shortly summerized, my project structure is like follows: - A and B are android lib-projects, where B depends on A - C (normal android project) depends on B - T is test-project of C I have correspondingly two projects on my jenkins server, one for C and one for T , which have their own script for build, using actually just android and ant commands. So there is no problem with the build of C , but i can't get work build of T . "Work" should there mean, that, depending on the script, it either