build-automation

How do I write a waf file for a custom compiler?

我怕爱的太早我们不能终老 提交于 2019-12-13 00:12:55
问题 I got sick of looking up the magic symbols in make and decided to try waf. I'm trying to use calibre to make ebooks and I'd like to create a wscript that takes in a file, runs a program with some arguments that include that file, and produces an output. Waf should only build if the input file is newer than the output. In make, I'd write a makefile like this: %.epub: %.recipe ebook-convert $ .epub --test -vv --debug-pipeline debug Where % is a magic symbol for the basename of the file and $ a

invalid option: --autospec

不羁岁月 提交于 2019-12-12 16:25:43
问题 /usr/local/bin/ruby -rrubygems -e "require 'redgreen'" /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/bin/spec --autospec <files_here> -O spec/spec.opts invalid option: --autospec Test::Unit automatic runner. Usage: -e [options] [-- untouched arguments] which spec says "/usr/local/bin/spec" which autospec says "/usr/local/bin/autospec" /usr/local/bin/spec --help includes --autospec option in the list. What am I missing here? 回答1: I finally got some time during the weekend to look into this

Expand a relative path in Ant script, for Inkscape

此生再无相见时 提交于 2019-12-12 12:33:11
问题 I'd like to write an Ant script that calls an external utility (Inkscape, in fact) that needs a full path. Right now I have <exec executable="${inkscape.path}"> <arg value="--file=build_exe/splash.svg" /> <arg value="--export-png=build_exe/splash.png" /> <arg value="-C" /> </exec> On Windows, Inkscape requires absolute paths. So how can I coax Ant to make build_exe/filename into an absolute path for me? Or, alternately, is there a workaround for Inkscape (maybe setting the working directory)?

How to have TeamCity update the build version number in a specified file?

微笑、不失礼 提交于 2019-12-12 10:56:57
问题 Does anyone know of an easy way to show the build version number in an HTML/JavaScript project that uses AMD? The version number is generated by TeamCity as part of the build process. Here is what I mean in more details: One of my js files (e.g. showVersion.js) has a line like this: alert('Build version: __build_ver_placeholder__ '); Ideally, after TeamCity completes the build, it will plug in the actual version number for the place-holder. And the line above will become: alert('Build version

How to use Play with custom modules and continuous integration

雨燕双飞 提交于 2019-12-12 07:56:46
问题 How can I set up builds of Play apps and (custom) Play modules in a CI system so that when a module's build is good, the build installs the module artifacts in a local repository and/or deploys them to a remote repository, and the apps use the artifacts in that repository? The solution should also work well for a developer who's working locally. I'm using Jenkins, and running in trouble whatever way I try to do this. Before I elaborate on all the problems I've encountered, I'll wait, because

cmake: How to make a script for copying Data files accompanying my program

前提是你 提交于 2019-12-12 07:53:29
问题 I am trying to automate my build process with cmake. There is currently only one issue: Where is, in cmake's philosophy (if there is one), the best place to put the copying of data files. I have a library and a few examples. The examples need the data. I currently do the following: I use a custom command in each example's CMakeLists.txt to copy all the Data into the CMAKE_CURRENT_BINARY_DIR in a post-build step. I use this in my debugging workflow, so no install target is executed yet. This

VS2010 TFS Automated build [closed]

我的梦境 提交于 2019-12-12 06:46:06
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I have 'fair' experience about VS and TFS environment. Here is what I have done so far. After I finished the coding work, I built it, checked-in it and other guy deployed it. So, I don't know what the meaning of

How to know whether the cmake project generation ended with success

天大地大妈咪最大 提交于 2019-12-12 03:43:39
问题 The last few weeks I'm playing with build automation. With the help of Cmake, I'm able to generate Visual Studio solution and MinGW makefile for Windows and also GCC makefile for Linux. The Cmake task is executed through a batch file on Windows respectively through a shell script on Linux. Everything looks correct and works as expected. My plan is to setup different test servers where the whole build and test process will be automated and the results will be reported somewhere. One thing I

How to verify if the product code and product version have been updated using MSBuild support for Installshield

*爱你&永不变心* 提交于 2019-12-12 02:43:57
问题 I'm trying to build an InstallShield project with MSBuild and TFS 2013. I followed the steps required to override the product code as indicated here. First, I created an .isproj file and managed to generate the installer successfully. However, the product code seems not to be changed. I check the file setup.ini and noticed that the Product GUID still the same as the value of Product Code in the .ism file. Is there a way to verify that the product code and product version have been changed?

Error using Ant to create EJB after upgrading WAS from 6.0 to 7.0

烈酒焚心 提交于 2019-12-12 02:15:24
问题 Ant task breaks at the <wsejbdeploy> tag. The exception message is : [wsejbdeploy] Error executing deployment: java.lang.ClassNotFoundException. Error is com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension. [wsejbdeploy] java.lang.ClassNotFoundException: com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension [wsejbdeploy] at java.lang.Class.forName(Class.java:136) In addition to that, ivy.xml reports problems, but when I inspect it, the messages have no sense (screenshot). I suspect the