build-automation

Grunt compass task not compatible with this directory structure?

倖福魔咒の 提交于 2019-12-06 05:11:16
I have the following directory structure (only showing the relevant bits for illustration purposes): proj \ \ Gruntfile.js \ package.json \ test \ (all my tests are in this folder structure) \ app \ \ index.html \ scripts \ (all my scripts are in here) \ views \ (all views are in here) \ styles \ \ style.css \ oldie.css \ print.css \ images \ \ hires \ (all high resolution images are here) \ lowres \ (all low resolution images are here) The compass section of my Gruntfile.js file looks like this: compass: { options: { require: "susy", sassDir: '<%= my.app %>/styles', cssDir: '.tmp/styles',

Using MSBuild to zip up multiple project directories

懵懂的女人 提交于 2019-12-06 04:45:34
问题 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 be able to create one zip file per subfolder of \OutDir . If I do the following: <ItemGroup> <ZipSource Include="\OutDir\**.*" /> </ItemGroup> <MSBuild.Community.Tasks.Zip Files="@(ZipSource)" ZipFileName="OutDir\%(ZipSource.RecursiveDir

How to integrate PreMake/CMake in a C++ build workflow

天涯浪子 提交于 2019-12-06 03:42:45
问题 I am looking at PreMake/CMake for the moment. However, I fail to see how this could be used in an entire cross-platform build workflow. Indeed, it generates makefiles (or solutions). Then, how do you actually build those solutions on each targeted platforms? Do you have to maintain one build script per target (like .sh or .bat file)? This would defeat the purpose of using a tool like premake/CMake in the first place. A link to a tutorial showing all the process from coding to final built

Merge two pngs via command line tool in windows?

喜欢而已 提交于 2019-12-06 03:42:12
I'm looking for a tool I can use via command line (windows 7) to merge two equally sized pngs. I'm not having much luck with search so far as most tools I've seen are pretty heavy applications which don't seem to target simple manipulations. I want to overwrite the bits in the opaque base image with the non-transparent pixels in the overlay image. I have photoshop CS4 as well, but haven't had much luck in finding the relevant command line arguments. ImageMagick has a command line tool called composite which will do what you want. Distributions available for Windows, Mac, Linux etc. I've just

Best way to alter constants in Java build process

末鹿安然 提交于 2019-12-06 02:56:45
问题 I have inherited a Java application (servlets) that runs under Tomcat. For historical reasons, the code has different "look and feel" options based on where the application will be deployed (essentially a matter of branding). There are several constants that control this branding process, which have different functions and should not be compacted into a single constant (i.e. BRAND, MULTI-LANGUAGE, plus the locations of icons and css style sheets, etc.). Currently the development team must

Building a set of specific projects in TFS

别等时光非礼了梦想. 提交于 2019-12-06 02:53:25
Does anybody know how can I configure TFS Build to build a set of projects in a solution instead? The solution I have, has 16 projects but for one of my build definitions I want some of them to be compiled. The easiest way in my opinion is to create a new solution file. There is nothing stopping you from having several solutions that reference the same projects (or some subset). The other way is to create a new configuration. In Solution Explorer, rightclick the root node -> Configuration Manager. In addition to standard configs like "debug" or "release" you can create your own custom ones.

Can you configure TeamCity “Artifacts” to be checked back into source control?

假如想象 提交于 2019-12-05 23:13:56
I would like to have TeamCity Artifacts be checked back into source control. I have used TFS Integrator before. So I am used to its approach where, through config, it can check in the output builds back into source control. Then when people do a get they will receive these artifacts. Or is there a completely different way of achieving this with TeamCity? The two ways I can think of are VCS Labeling specify a path in your working directory to label and the location relative to the trunk to check it in. jetbrains explains it here /project/trunk/dist=>/project/tags/%system.build.number% from the

Sublime Text 2: build system custom selector

让人想犯罪 __ 提交于 2019-12-05 20:53:59
问题 How can I define a selector in the build system with the custom extension (like *.ltx , *.cmake etc) for which there is no available selector (like text.tex.latex , source.c++ etc)? Is it possible? If yes - how? 回答1: It's possible, if you define a new syntax definition (i.e., a new .tmLanguage file). Syntax definitions can declare new 'scope names' which you can then use in your new, custom build systems. The new syntax definition file doesn't actually have to define/match the file's syntax,

What is the preferred way to setup a continuous integration build chain for a big project with TeamCity?

半世苍凉 提交于 2019-12-05 19:45:59
for some time my company is now using Maven and TeamCity to build Java stuff. Currently we are investing quite heavily in continuous integration and ultimately continuous delivery. Among many smaller applications (apps) we are operating one big monolith app with approx. 1 million LOC. This app on quite a big build agent takes 5 minutes to compile (incl. 2 minutes svn up). Its 12k unit tests are running for another 5 minutes. Deploying the build results to Nexus takes at least 10 minutes. To provide fast feedback to developers we try to split the the amount of work to be done in different build

Using MSBuild and CSPack task to package Azure roles

左心房为你撑大大i 提交于 2019-12-05 18:58:46
问题 I am working on a build script for an Azure web role project. The script will run on a build server, so using VS is a non-starter. I can build the project using MSBuild and use CmdLets for Azure to handle the deployment (via PowerShell). The part that is missing is the creation of the cloud package. I can use the CSPack.exe tool that is included in the SDK, but I would like to use MSBuild tasks if possible, as that way I can leverage the build configuration options and integrate the creation