build-process

Using VSTest to run unit test cases instead of MSTest

天涯浪子 提交于 2019-12-20 08:50:15
问题 I have an x64 platform C# solution(VS2012) on a TFS2010 server. I have attached a unit test project (also x64) to this solution and created a build definition. When I queue the build, it succeeds but the unit test cases will not be executed. This is because MSTest is a 32 bit application. So, I decided to customize the default build process template (DefaultTemplate.xaml) to invoke VSTest(VSTest.console.exe) instead of MSTest. This is quite complex and I am unable to add a build activity to

how to get docker-compose to use the latest image from repository

拥有回忆 提交于 2019-12-20 08:47:05
问题 I don't know what I'm doing wrong, but I simply cannot get docker-compose up to use the latest image from our registry without first removing the old containers from the system completely. It looks like compose is using the previously started image even though docker-compose pull has fetched a newer image. I looked at How to get docker-compose to always re-create containers from fresh images? which seemed to be similar to my issue, but none of the provided solutions there work for me, since I

How do I upgrade the version of a maven plugin?

怎甘沉沦 提交于 2019-12-20 08:26:27
问题 I am using the maven-ear-plugin version 2.3.1 - I know there is a new version available: http://maven.apache.org/plugins/maven-ear-plugin/ I can't work out how to upgrade to the latest version? 回答1: The default plugin versions are inherited from the Super POM, and you can check them with mvn help:effective-pom . If you want to override the version provided there, add this to your POM: <project> <build> <plugins> <plugin> <artifactId>maven-ear-plugin</artifactId> <version>2.3.1</version> <

Xcode variables

烈酒焚心 提交于 2019-12-20 08:21:09
问题 In Xcode, I know that you can get variables such as PROJECT_DIR to use in some situations, such as a run script build phase. I am wondering if it's possible to get the build type (i.e., Release or Debug ). Any ideas? 回答1: The best source is probably Apple's official documentation. The specific variable you are looking for is CONFIGURATION. 回答2: Here's a list of the environment variables. I think you might want CURRENT_VARIANT . See also BUILD_VARIANTS . 来源: https://stackoverflow.com/questions

Improving Your Build Process

我与影子孤独终老i 提交于 2019-12-20 08:19:23
问题 Or, actually establishing a build process when there isn't much of one in place to begin with. Currently, that's pretty much the situation my group faces. We do web-app development primarily (but no desktop development at this time). Software deployments are ugly and unwieldy even with our modest apps, and we've had far too many issues crop up in the two years I have been a part of this team (and company). It's past time to do something about that, and the upshot is that we'll be able to kill

iPhone Game Developers - What does your toolchain look like?

拟墨画扇 提交于 2019-12-20 08:07:23
问题 For example: source control: git + adobe drive 3d: google sketchup -> *.dae -> blender -> *.obj 2d: photoshop/illustrator -> *.png audio: audacity -> *.caf code: ArgoUML, Xcode, Textmate test: OCUnit build: rake, Xcode Feel free to mention any other tools that you think are awesome :) 回答1: git, github, Xcode, Interface Builder, Photoshop, Illustrator, TextMate, unit testing via Behaviour (it’s on github), custom 3D software, custom audio software. Neat idea for the post, I like it! 回答2: I use

Maven private dependencies

半城伤御伤魂 提交于 2019-12-20 07:17:06
问题 Is there a way to specify private dependency for a project that will not be visible to others? What I'm trying to achieve is pretty much similar to what exclusion does, but with one slight difference - user should not be aware of that dependency at all and, thus, won't have to use this exclusion explicitly. And if this is not possible (which, most likely, is true), then is there any particular reason why? 回答1: Optional dependencies sound like what you want. Mark a dependency as optional and

How to create directories specified by a mapper in Ant

三世轮回 提交于 2019-12-20 03:49:39
问题 Given a fileset <fileset id="myFiles" dir="."> <include name="**/*.file"/> </fileset> How do I create a sub-directory at each file in the set, named after the filename without the extension? For example, given the files folderA/X.file and folderA/folderB/Y.file, I want to create the directories folderA/X and folderA/folderB/Y 回答1: The ant touch task supports creating files, parent dirs and filename mapping, so can be used to achieve this: <target name="mkdirs"> <touch mkdirs="true"> <fileset

Using mapper & fileset to copy files into a different subdirectory?

拥有回忆 提交于 2019-12-19 16:35:12
问题 I want to create an Ant target that copies files in a directory to a destination directory with the same folder structure, plus one more subfolder appended. For example, the source is: a/b/c/foo.pdf d/e/f/bar.pdf I want the destination to be: a/b/c/x/foo.pdf d/e/f/x/foo.pdf Here is my target so far, but it doesn't appear to be doing anything: <copy todir="${dest.dir}"> <fileset dir="${src.dir}" casesensitive="yes"> <include name="**${file.separator}foo.pdf" /> </fileset> <mapper type="glob"

How to setup activity automatically for a view?

我们两清 提交于 2019-12-19 10:15:55
问题 In our build , we use to delete our view and create new view before build. It was working without any issue in base clearcase. But in UCM we face issues while check-out and check-in due to activity name has to be assigned every time. Is it a good practice to create new activity whenever i build? [ But number of activities will be soon increased to enormous] Is there any easy way to setup default activity automatically in UCM? Has any body automated this in their build process? If so can you