build-automation

Promising alternatives to make? [closed]

馋奶兔 提交于 2019-11-27 09:18:55
问题 I've been using make and makefiles for many many years, and although the concept is sound, the implementation has something to be desired. Has anyone found any good alternatives to make that don't overcomplicate the problem? 回答1: check out SCons. For example Doom 3 and Blender make uses of it. 回答2: I have a lot of friends who swear by CMake for cross-platform development: http://www.cmake.org/ It's the build system used for VTK (among other things), which is a C++ library with cross-platform

Verification of dependency authenticy in Maven POM based automated build systems

穿精又带淫゛_ 提交于 2019-11-27 08:55:49
I was just pointed to a very interesting article about a security problem called Cross Build Injection (XBI). Bascially it is a fancy name for smuggling bad code into an application at build time via automated build systems such as ant, maven or ivy. The problem could be alleviated by introducing a cryptographic signature validation für dependencies as it is currently in place with many operating systems for downloading packages. To be clear: I am not talking about simply providing md5 or sha1 hashes for the artifacts. That is already done, but those hashes are stored in the same location as

Multiple settings gradle files for multiple projects building

纵饮孤独 提交于 2019-11-27 06:48:29
I have the following project structure -->Starnderd Location -->Project1 -->settings.gradle -->build.gradle -->Subproject11 -->build.gradle -->Subproject12 -->build.gradle -->Project2 -->settings.gradle -->build.gradle -->Subproject21 -->build.gradle -->Subproject22 -->build.gradle -->build.gradle -->settings.gradle Idea of above project structure is that we have multiple projects which contains subprojects, each project can have dependencies to other projects. Also subprojects inside the project can have dependencies to other subprojects within the same project. Projects will be specified in

Maven: how to do parallel builds?

假装没事ソ 提交于 2019-11-27 06:01:58
When you build with maven on a multicore / multi-CPU machine it would often be possible to build different subprojects in parallel. Is there a way to do this with maven? Is there a plugin for this / whatever? Maven 3 (as of beta 1) now supports parallel builds as an experimental feature. For example, mvn -T 4 clean install # Builds with 4 threads mvn -T 1C clean install # 1 thread per cpu core mvn -T 1.5C clean install # 1.5 thread per cpu core Full documentation can be found on the Maven wiki. https://cwiki.apache.org/confluence/display/MAVEN/Parallel+builds+in+Maven+3 Some of the CI build

Perl build, unit testing, code coverage: A complete working example

爱⌒轻易说出口 提交于 2019-11-27 05:48:25
Most Stackoverflow answers that I have found in regards to the Perl build process and unit testing and code coverage simply point me to CPAN for the documentation there. There's absolutely nothing wrong with pointing to CPAN modules because that's where the full documentation is supposed to reside. I've had trouble finding complete working code examples in many cases, though. I've been searching all over the Internet for actual working code samples that I can download or paste into my IDE, like your typical tutorial "Hello World" example source code, but of an example that demonstrates the

Gradle zipAlign task not working?

烈酒焚心 提交于 2019-11-27 05:47:06
问题 It appears the Gradle zipAlign task isn't working for me, not sure what I'm doing wrong. I've tried including the zipAlign task, and not including it, but it doesn't seem to make a difference. My gradle scripts spit out a "release" build, but it's never zipAligned according to the developer console when I try to upload my .apk. Here's my build script: buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.4.2' } } apply plugin: 'android'

How do I clear my Jenkins/Hudson build history?

自古美人都是妖i 提交于 2019-11-27 04:58:30
问题 I recently updated the configuration of one of my hudson builds. The build history is out of sync. Is there a way to clear my build history? Please and thank you 回答1: If you click Manage Hudson / Reload Configuration From Disk, Hudson will reload all the build history data. If the data on disk is messed up, you'll need to go to your %HUDSON_HOME%\jobs\< projectname > directory and restore the build directories as they're supposed to be. Then reload config data. If you're simply asking how to

Tutorial or Guide for Scripting XCode Build Phases

感情迁移 提交于 2019-11-27 04:16:39
问题 I would like to add some files to the Compile Sources build phase using a script in XCode, which pulls from some folder references. I haven't been able to find much documentation so far. Where is the general documentation (or a good tutorial) for scripting XCode build phases? How can I add files to the Compile Sources phase? How can I discover information about the project and the folder references within it? Are there any special considerations if I want to script in Ruby or Python vs. bash

Is it possible to alias a branch in Git?

烂漫一生 提交于 2019-11-27 03:47:19
I am looking into using git on a massive scale. I was hoping to increase adoption and make things easier by calling the master branch trunk. This can and will give SVN users some feelings of comfort. I know I can create a branch called trunk but that seems to deviate from the git norms and might cause some users to get confused. I know that I can also create and delete tags to my heart's content but when I checkout those tags it tells me it is a non local branch which is just fine with me but probably not what I want to be doing. I am a total git newb but a seasoned professional at release and

How and why do I set up a C# build machine? [closed]

北战南征 提交于 2019-11-27 02:28:58
I'm working with a small (4 person) development team on a C# project. I've proposed setting up a build machine which will do nightly builds and tests of the project, because I understand that this is a Good Thing. Trouble is, we don't have a whole lot of budget here, so I have to justify the expense to the powers that be. So I want to know: What kind of tools/licenses will I need? Right now, we use Visual Studio and Smart Assembly to build, and Perforce for source control. Will I need something else, or is there an equivalent of a cron job for running automated scripts? What, exactly, will