Changes between Version 1 and Version 2 of JenkinsSetup


Ignore:
Timestamp:
Apr 25, 2014, 6:17:36 PM (10 years ago)
Author:
Yves
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • JenkinsSetup

    v1 v2  
    11This replaces the old and probably outdated work in progress documentation about Jenkins which can still be found here: JenkinsSetupOld.
     2
     3= Installation
     4
     5== Basic installation
     6
     7 * The current testing system was installed using the Jenkins repository for debian: http://pkg.jenkins-ci.org/debian/
     8
     9== Additional plugins
     10
     11 * xUnit plugin for unit tests
     12
     13
     14== Unit test configuration
     15You can configure Jenkins to run our unit tests and report the results on the web interface.
     16The test executable can be configured and built to produce an xUnit compliant xml file with the test results.
     17
     181. Install the xUnit plugin
     191. In the project configuration, make sure to pass the argument --jenkins-tests to update-workspaces.sh
     201. in the execute shell section, add the following script to run the tests. It also contains a small fix for an incompatibility with the xUnit format used by Jenkins.
     21
     22{{{
     23#!/bin/bash
     24cd 0ad/binaries/system
     25echo "releasetype: $releasetype"
     26if [ "$releasetype" == "debug" ]; then
     27    ./test_dbg > ../../../cxxtest_result_$releasetype.xml
     28else
     29    -/test > ../../../cxxtest_result_$releasetype.xml
     30fi
     31sed -i 's/date/timestamp/g' ../../../cxxtest_result_$releasetype.xml
     32}}}
     33
     344. Add a post-build action to "Publish xUnit test report".