build-automation

How to automate android builds for lite and premium version?

大兔子大兔子 提交于 2019-12-20 14:09:06
问题 I'm looking for a solutions which will allow me to build lite and premium versions of my android app without manual manipulations. The functionality I'm looking for is: Automatically renaming package Changing home package name in AndroidManifest.xml file. Changing constant values in java or/and resource files or substituting appropriate files for current application version. Thanks. 回答1: I would suggest looking into Android Library Projects to help with this. I use this approach for a Lite vs

CMake: specifying build toolchain

╄→尐↘猪︶ㄣ 提交于 2019-12-20 10:25:06
问题 Very new to CMake, and so far I'm finding it to be extremely helpful. I have a set of custom libraries that I would like to build for multiple platforms using cross-compilation. The toolchains are installed, and I can hand-create the Makefile s that I need to do so, but I would like to be able to make use of CMake. Is there a way to tell cmake which toolchain to use, either at the command line or in the CMakeLists.txt file? 回答1: Have a look here: basically, you define a "toolchain file" that

Is there a way to separate long running (e.g. stress tests) out so they're not run by default in Maven 2?

筅森魡賤 提交于 2019-12-20 09:55:25
问题 We've had an ongoing need here that I can't figure out how to address using the stock Maven 2 tools and documentation. Some of our developers have some very long running JUnit tests (usually stress tests) that under no circumstances should be run as a regular part of the build process / nightly build. Of course we can use the surefire plugin's exclusion mechanism and just punt them from the build, but ideally we'd love something that would allow the developer to run them at will through Maven

How to make System command calls in Java/Groovy?

孤街浪徒 提交于 2019-12-20 09:45:19
问题 What I want to do is invoke maven from a groovy script. The groovy script in question is used as a maven wrapper to build J2EE projects by downloading a tag and invoking maven on what was downloaded. How should I accomplish invoking maven to build/package the EAR (the groovy script is already capable of downloading the tag from SCM). 回答1: The simplest way to invoke an external process in Groovy is to use the execute() command on a string. For example, to execute maven from a groovy script run

What Tools Do You Recommend To Auto-Build Your Application? [closed]

青春壹個敷衍的年華 提交于 2019-12-20 09:44:33
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . As recently as several years ago, the developers actually made the builds that went to clients. This was obviously a disaster for reasons too numerous to list. Then when we started to learn the errors of our ways, we looked for a way to auto-build the entire application on a dedicated build machine. The culture

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

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

Jenkins - conditions between build steps

女生的网名这么多〃 提交于 2019-12-19 09:16:53
问题 I want to build a Maven project using Jenkins. However, the project only must be built if a certain file in the SVN repository has changed (and contains a special key) So my plan is to create a job with two build steps: the first step executes a shell or python script that checks that "condition". the second step is the actual Maven build The second step only must be invoked if the condition check in step 1 returned "true". Is there a possibility to do so? Well, I guess I could return an exit

How to transform a flow chart into an implementation? [closed]

梦想的初衷 提交于 2019-12-19 09:07:58
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . EDIT: INTRODUCTION To reach out towards a broader readership, I have reformulated my original question through an elaborate (and somewhat tedious) real-life example. The original question is shown (far) below. Tom has just been hired (depending on his performance during his first