build-automation

Visual Studio and NUnit - automatic running of unit tests on build

I would love to know if there is a way I can get Visual Studio to run unit tests corresponding to a given assembly whenever I build it. Given a solution containing projects structured like this: Assembly1 Assembly1.Tests Assembly2 Assembly2.Tests Is there a way I can get the unit tests in Assembly2.Tests to run whenever Assembly...

looking for scripting language for automated build & deploy

I'll start to write a automated build/deploy script for our software team, and I'm not sure which scripting language or tool to use. I'm always eager to learn something new and improve my value on the current software market, so what language do you propose? In the past, I used windows batch files, which are kind of ugly to read and scr...

Open source ALM software stack

I was looking at open source ALM tools and discovered an interesting project called jabox. Jabox is a new project designed to support Maven builds and new projects are setup with pre-configured POMs supporting the following suite of tools: What makes Jabox unique is that it contains embedded editions of the following tools: Subve...

nAnt and nAntContrib

Hi I'm having problems building the nAntContrib library using the instructions provided. When running the build I get the following feedback C:\Code\trunk\tools\nAnt-Contrib>..\nant\nant-0.90\bin\nant.exe -D:nant.dir=C:\c ode\trunk\tools\nAnt\nant-0.90 -f:NantContrib.build NAnt 0.90 (Build 0.90.3780.0; release; 5/8/2010) Copyright (C) ...

Using MSBuild to zip up multiple project directories

As part of my build process in MSBuild 4.0, I end up with the following directory structure: \OutDir \ProjectA \File1.dll \File2.dll \File3.exe \ProjectB \Subfolder1 File4.html \File5.dll \File6.dll \File7.exe \ProjectC \File8.dll \File9.exe I want to ...

Remembering to run tests before commit

We have a decent set of unit tests on our code and those unit tests run in under 2 minutes. We also use TeamCity to do a build and to run tests after each check in. However, we still get issues where a developer "forgets" to run all the tests before a commit resulting in TeamCity failure which if this check in was done at 6PM may stay b...

Email notification on success/failed build using ant target.

Hi all, my current code(build.xml) enables me to send email on successful build, but when failed, nothing happens. The targets are called from a build.bat file through command similar to " ........ -DrepositoryAddress=%1 -DbuildResultUUID=%2 startPublish " (for all targets, in order startActivity->startPublish->mailer->startActivity). N...

phing + sftp to upload site as part of automated build

Hello, Does anybody know of an easy way to upload files to a remote server using SFTP from within a Phing build? I cant seem to find a custom or native Phing task to do this. The other problem is the interactivity of the SFTP unix command (requiring a password after reaching host, etc.) Any ideas? ...

external file to hold msbuild tasks

I have created some ms build tasks for my VS project. Rather than having to update the VS Project file with each of the tasks, is it possible to create an external file to hold the build tasks and reference it via the main project file? Also, I have seen with nant, that you can create .bat file to run nant tasks. Is it possible to do s...

Make like tool that supports automatic deletion of temp files and regular expression pattern rules?

I am searching a make like build tool that supports (besides usual make features): Automatic deletion of temporary created files (like in GNU make for example) Regular expressions in rule patterns (like e.g. in Cook About 1: By default GNU make deletes temporary files. For example have these rules: %.c: %.y some-comand %....

Environment for java + scala + lift project in eclipse without maven

I'm trying to understand what's the best way to setup a project that is a mix of java and scala and that will use lift. Lift is intended to run embedded by jetty in another application. I'm comfortable to work in Eclipse and also used to how it works with ant as build tool. I'm a relatively newbie in both scala and lift and get confused...

Ant propertyset inheritance with nested tasks

I have a set of nested Ant build files, and I need to control which properties are inherited by each "sub" task. I'm trying to define these as propertysets (to keep the code manageable) but these are not inherited by subtasks, unlike properties. The example below demonstrates the problem, foo.* get copied into the middle project but not...

TFS build server

We are just getting started with TFS 2010 and migration from SVN and CruiseControl.NET to TFS. With cruisecontrol.NET we have a powershell script that does everything: copying, modifying, compressing files. Now my question is how we can integrate that script into the TFS build server? Modifying the solution or creating a custom msbuil...

Tools for generating HTML documentation

I've been writing documentation files in raw HTML for a small open source project in Java. Now I'm wondering if there are any good tools to automatically generate the HTML docs from some source files during the build process, with the main advantages being substitution of ${variables} and a consistent layout across all pages. An importa...

Integrate automated GWT GUI testing with build system

I am in flux for integrating an automated GUI testing with my build system. My GUI application is developed in GWT. I use HUDSON as my automated build system. I would like to perform sanity test of my application. As I understand, the entire test setup will have following steps. Build and deploy the application in predefined applicatio...

How can I get Visual Studio to beep at me if a build succeeds?

I work in a solution with many projects. Often, I need to recompile and it takes a minute or two, so I tend to switch to a web browser to kill that time. Sometimes I forget to look back and the build succeeded a few minutes before I noticed. Is it possible to somehow get Visual Studio (just UI version, not command line) to beep at me if...

How to auto checkout and checkin file in TFS

Hi, I want to change the content of a file every time build is done. And we have automated build process, so manually we cant checkout the file, do modifications in file and check-in. So can anyone please help me in how to automatically checkout the file, do changes in file and then checkin back the file. Thanks ...

Can I fail the build based on svn:eol-style and svn:keywords?

Not everyone I work with has subversion configured the same way. Every once in a while I have to make sure that all source files have the proper eol-style and keyword expansion set. It would be much easier if I could just fail the build if someone commits code without configuring subversion properly. Is that possible? EDIT The build us...

is there a way to automate changing filenames in <link> , <script> tags

when we use Expires header for text files like js, css, contents are cached in the browser, to get new content we need to change in the html file the new names in the link and script tag. When we add changes. How can we automate it. In a Windows Box, I may have some bunch of html files in multiple folders also in subdirectories. There ...

Force regeneration of Settings.settings file after change in app.config

Hi I have an automated build process that sets up the application for a specified mode (e.g. Dev, uat, live). Depending on this mode I want to update Connection Strings to the relevant one. However, in my Data Access Layer there is an app.config file which stores the connection string and this is used to feed the Settings.Settings file...