Sunday, September 26, 2010

Backup of Hudson Config for Building Crackpot

Some time before I set up Hudson for continuous integration of Crackpot. Here I want to back up all the configurations for ready reference (physical backup of Hudson home dir is already set).
  • Dependencies for Building
  • Config for Building Crackpot
  • Hudson Settings
  • Setting Hudson as a Service
Dependencies for Building
  • Visual Studio for devenv
  • cmake
  • cygwin to execute shell
Config for Building Crackpot

Under Build > Execute Shell, put:

  # define build and installation directories
   BUILD_DIR=$WORKSPACE/crackpot_root_dir/build
   SOURCE_DIR=$WORKSPACE/crackpot_root_dir

   # we want to have a clean build
   cd "$BUILD_DIR"

   # initializing the build system
   cmake  -G "Visual Studio 9 2008" "$SOURCE_DIR"

   # fire-up the compiler
   # NOTE: put denenv in system path
   devenv.com Crackpot.sln /clean Debug /project ALL_BUILD
   devenv.com Crackpot.sln /build Debug /project ALL_BUILD
   devenv.com Crackpot.sln /build Debug /project RUN_TESTS

  # define source directories
   SOURCE_DIR=$WORKSPACE/crackpot_root_dir

   # we want to have a clean build
   cd "$SOURCE_DIR"

   doxygen

Hudson Settings

Environment Variables: 

key: PATH
value: %PATH%;C:\Program Files\CMake 2.6\bin;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\Windows\System32;C:\Program Files\doxygen\bin

Shell executable:

C:\cygwin\bin\sh.exe

Setting Hudson as a Service

There was some issue with using the Hudson built-in way to set as service. I followed this and this

No comments: