build-automation

Why should my development team have a build server?

房东的猫 提交于 2019-12-03 15:54:31
问题 We know this is good to have, but I find myself justifying it to my employer. Please pitch in on why a development team needs a build server. 回答1: There are multiple reasons to use build servers. In no particular order and off the top of my head: You simplify the developers' workflow and reduce the chance of mistakes. Your build server can take care of multiple steps such as checking out latest code, having required software installed, etc. There's no chance of a developer having some stray

cmake: How to make a script for copying Data files accompanying my program

淺唱寂寞╮ 提交于 2019-12-03 13:59:46
I am trying to automate my build process with cmake. There is currently only one issue: Where is, in cmake's philosophy (if there is one), the best place to put the copying of data files. I have a library and a few examples. The examples need the data. I currently do the following: I use a custom command in each example's CMakeLists.txt to copy all the Data into the CMAKE_CURRENT_BINARY_DIR in a post-build step. I use this in my debugging workflow, so no install target is executed yet. This works quite well, but has certain drawbacks: The copying occurs everytime the project is built. With VS

How to deliver properties files in addition to artifacts?

折月煮酒 提交于 2019-12-03 13:45:44
I am using Maven2 to build a WAR project. Some properties files are dependent on the environment targeted for a release. I want to deliver, in addition of the WAR, a file called datasource.xml . This file already exists in my project directory, but contains properties that will be filtered during the build (i.e. some ${foo.bar} ). In others words, after running the command mvn clean install , I want to see in my target/ directory two files, my-webapp.war and datasource.xml . Note that datasource.xml must not be included in the my-webapp.war artifact! How can I do this? You can attach

Automatic Deployment Resources

左心房为你撑大大i 提交于 2019-12-03 13:13:26
问题 I know enough to know that we need to get our application to deploy with a single user action. However, I don't know: What are some good tools to use in a .NET shop? How do you manage config changes for each of your environments? Can someone point me to some good resources for continous integration. I'd like to see some theory as well as a step by step practical guide. Edit: I'm in need to automated a web deployment right now; however, I'd also like to learn how to do this for desktop apps.

Build-automation - sbt: Compile/Test against multiple dependencies

让人想犯罪 __ 提交于 2019-12-03 13:08:50
We just published parts of our library ( Mango ) which is a Scala wrapper around Google Guava common libraries for Java. The library currently depends on Google Gauva 14.0, but we would like to add support for other versions as well. Is there a way in sbt , a build-automation tool for Scala and Java projects, to create maven like profiles, where each profile compiles against a different version of the respective Guava dependency, so we can include it in the continuous integration test matrix? Ideally, it should be possible to call sbt with something like: sbt test guava:14.0 sbt test guava:13

upload file with FTP using nant

送分小仙女□ 提交于 2019-12-03 12:36:27
问题 I have an NAnt script that I use to build my .NET project, and I'm looking to see if there is a way to upload the resulted assemblies to some remote folder using an FTP task. I couldn't find any good example online, and I'm wondering if anyone knows how to do it, if it's doable at all. FYI: I'm running it on a windows machine, if it makes any difference. 回答1: You could use WinSCP as console application in a NAnt <exec> task. Using WinSCP will give You access to extra goodies like

MSbuild for updating the assemblyinfo file

爷,独闯天下 提交于 2019-12-03 11:11:56
I am writing a batch file to automate a series of tasks. One of these tasks is to update the version of the dlls in my solution, by editing the assemblyinfo.cs file in the various projects in my solution; and then finally calling msbuild.exe to compile the solution. In this regard, is it possible to write a command line script to update the various assemblyinfo.cs files in my .net solution. I would prefer to call msbuild from the commandline itself and not create another msbuild scripted file. How does one do this using MSBuild? Is there any other way to do it? Thanks for your time... Editing

How to copy compiled jade files to a destination folder using grunt

佐手、 提交于 2019-12-03 10:19:35
问题 For a single page app that I'm working on, I have the following structure: dist css js lib partials index.html src css js lib views partials index.jade Directory dist will be used by the express server to serve the project. I have trivial grunt tasks (using grunt-contrib-clean , grunt-contrib-copy ) for cleaning dist and copying src/css , src/js , src/lib to dist . The problem lies with src/views . This directory contains jade files which need to be compiled to html files. After compilation I

Visual Studio required to run MSTest test on Team City Build Server?

冷暖自知 提交于 2019-12-03 09:59:20
问题 We are setting up a Team City build server. On previous VS 2008 projects a full version of Visual Studio has been installed on the build server. We are now starting a VS 2010 project. Is it possible to run MSTest tests on the Team City build server without installing Visual Studio? 回答1: Download the Visual Studio Agents 2010 ISO: http://www.microsoft.com/en-us/download/details.aspx?id=1334 Mount/Extract the files and copy them to the agent server Run AutoRun and select to install Microsoft

What is a good tool for Build Pipelines?

淺唱寂寞╮ 提交于 2019-12-03 09:40:55
问题 I need a tool that will graphically represent our build pipeline. The below screenshots of ThoughtWorks Go and the Jenkins Pipeline plugin illustrate almost exactly what I want it to look like. The problem is that we already use Jenkins for our builds and deployments, along with a few other custom tools for orchestration type duties. We don't want a pipeline tool to do the builds or deployments itself, it just needs to invoke Jenkins! I tried out Go, and the first thing it asked for is where