build-process

Run all unit tests with Ant builder

吃可爱长大的小学妹 提交于 2019-11-30 22:18:30
I have a directory with a bunch of JUnit tests in my project. So far I have used separate target for each unit test. For example: <target name="MyTest"> <mkdir dir="${junit.output.dir}"/> <junit fork="yes" printsummary="withOutAndErr"> <formatter type="xml"/> <test name="tests.MyTest" todir="${junit.output.dir}"/> <classpath refid="MyProject.classpath"/> </junit> </target> This method requires me to change build file every time I add a Unit test. I want to able able to to run all unit tests in the project with a single Ant builder target. Is it possible to do? Yep it is, you need to look at

Jenkins - How can i pass parameters from the Upstream to Downstream

白昼怎懂夜的黑 提交于 2019-11-30 20:42:02
I have 3 builds: A - is the Master build which control the flow B- Anoter build C- will be executed after B I want to add a String parameter to A so the user will enter some String manually, and i'm not sure how can i path this parameter to B. lets say that this is my build flow: build("B") build("C") I don't know how can i path the parameter to B, should i do that from the build flow or from the B build configuration and how can i do that. Thanks in advance Alex dspiegel Something like this: build("B", B_parameter: params["A_parameter"])<br> build("C") https://wiki.jenkins-ci.org/display

Run a shell script before build in Xcode

空扰寡人 提交于 2019-11-30 20:33:22
I need to adjust my build and version number for my project before build/archiving. I tried multiple things, but so far to no avail. I added a target with the script to update the numbers and added that as first dependency to my main target. But because I have multiple dependencies as I have extensions in my app and all dependencies are executed by Xcode in parallel (or at least in random order) this does not work. I added a pre-action to my scheme with the same result. Xcode is not waiting for my pre-action to complete before continuing with the build (I added a sleep 100 to test). As I'm

What algorithm does buildbot use to assign builders to slaves?

随声附和 提交于 2019-11-30 20:30:41
I have a buildbot with some builders and two slave machines. Some of the builders can run on one slave, and some of them can run on both machines. What algorithm will buildbot use to schedule the builds? Will it notice that some builders can run on just one slave and that it should assign those that can run on both slaves to the less demanded one? (I know buildbot can be used to run the same build on multiple architectures, say Windows, Linux, etc. We are using it to distribute builds for performance, because a single build is enough for us). First it gets a list of all the slaves attached to

C# to C++/CLI to C DLL System.IO.FileNotFoundException

十年热恋 提交于 2019-11-30 20:06:45
I'm getting System.IO.FileNotFoundException: The specified module could not be found when running C# code that calls a C++/CLI assembly which in turn calls a pure C DLL. It happens as soon as an object is instantiated that calls the pure C DLL functions. BackingStore is pure C. CPPDemoViewModel is C++/CLI calling BackingStore it has a reference to BackingStore. I tried the simplest possible case - add a new C# unit test project that just tries to create an object defined in CPPDemoViewModel . I added a reference from the C# project to CPPDemoViewModel . A C++/CLI test project works fine with

Call powershell script in post-built with parameters

元气小坏坏 提交于 2019-11-30 19:50:58
I'm trying to get Powershell to run my PS script in post built - but somehow it doesn't work like it's supposed to: Following command in Post-Build: C:\WINDOWS\system32\windowspowershell\1.0\powershell.exe -Command "& $(MSBuildProjectDirectory)\CreateSite.ps1 'auto'" (inserted line break for better reading) The command executes the powershell script sucessfully, but what it can't do is run the commands within (Output from Build): Rund Post-Build Command: Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 2 At C:\path\CreateSite.ps1:4 char: 38 + Add-PsSnapin <<<<

Use ANT to update build number and inject into source code

会有一股神秘感。 提交于 2019-11-30 18:41:21
In my build.xml file I am incrementing a build version number in a property file like so: <target name="minor"> <propertyfile file="build_info.properties"> <entry key="build.minor.number" type="int" operation="+" value="1" pattern="00" /> <entry key="build.revision.number" type="int" value="0" pattern="00" /> </propertyfile> </target> I also have similar entries for the major and revision. (from Build numbers: major.minor.revision ) This works great. Now I would like to take this incremented build number and inject it into my source code: //Main.as public static const VERSION:String = "@(#)00

How to read property value from external file?

倾然丶 夕夏残阳落幕 提交于 2019-11-30 18:28:15
I have AssemblyInfo.cs file automatically generated during build. Here's part of .csproj file: <PropertyGroup> <Major>2</Major> <Minor>3</Minor> <Build>0</Build> <Revision>0</Revision> </PropertyGroup> <Target Name="BeforeBuild"> <SvnVersion LocalPath="$(MSBuildProjectDirectory)" ToolPath="C:\Program Files\VisualSVN Server\bin"> <Output TaskParameter="Revision" PropertyName="Revision" /> </SvnVersion> <AssemblyInfo CodeLanguage="CS" OutputFile="$(MSBuildProjectDirectory)\Properties\VersionInfo.cs" AssemblyVersion="$(Major).$(Minor).$(Build).$(Revision)" AssemblyFileVersion="$(Major).$(Minor).$

Your account already has a valid iOS distribution certificate from same machine

a 夏天 提交于 2019-11-30 18:23:04
问题 I am trying to create an IPA from my machine. While creating an IPA I am getting the error "Your account already has a valid iOS distribution certificate". I created the certificate and provisioning profiles, so all my code signing identities are on my machine. I'm able to run the app in device with the same certificate but unable to build the .ipa file. I am creating the certificates with admin rights (not with agent rights). I am creating Development certificate (not an ad hoc certificate:

“ERROR MSB4040 There is no target in the project” when using msbuild+Delphi2009

蓝咒 提交于 2019-11-30 18:14:37
I'm trying to automate the build of a project in Delphi 2009. I'm using msbuild with .net 3.5 I simply call: Z:\Server>C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild "BestSellerAppServer.g roupproj" /target:Build And get this: Build started 27/08/2009 01:15:45 p.m.. Project "Z:\Server\BestSellerAppServer.groupproj" on node 0 (Build target(s)). Project "Z:\Server\BestSellerAppServer.groupproj" (1) is building "Z:\Server\Be stSellerAppServer.dproj" (2) on node 0 (default targets). Z:\Server\BestSellerAppServer.dproj : error MSB4040: There is no target in the project. Done Building Project "Z: