philsquared/Catch — pull request #190 by Kosta-Github (2013-08-05 12:20:29+00:00)
Title: Add support for cmake and Travis CI

CMake
----------

Add a cmake based project for the `SelfTest`. You can build the `SelfTest` via cmake in this way:
```Shell
cd projects/CMake
cmake -H. -BBuild -DCMAKE_BUILD_TYPE=Debug
cd Build
make
ctest
```
This project has been successfully tested on Windows and Linux.

Travis CI
----------

Add a Travis CI config file for executing the `SelfTest` on each commit and pull request automatically. The result of the `SelfTest` run is automatically attached to pull requests and gets automatically updated each time a pull request gets updated.

The tests are compiled and tested on a Linux system with the gcc 4.6.x and clang 3.2 compilers (the Travis CI default versions) in `Debug` and `Release` mode.

Follow these simple steps to activate the Travis CI trigger from Github: http://about.travis-ci.org/docs/user/getting-started/

If you place the following lines near the top of the `README.md` file you can get a fast visual feedback about the build status of the `master` and the `Integration` branches:
```
[![Build Status](https://travis-ci.org/philsquared/Catch.png?branch=master)](https://travis-ci.org/philsquared/Catch) Travis CI build status for the `master` branch
[![Build Status](https://travis-ci.org/philsquared/Catch.png?branch=Integration)](https://travis-ci.org/philsquared/Catch) Travis CI build status for the `Integration` branch
```
These links resolve to something like this:
[![Build Status](https://travis-ci.org/philsquared/Catch.png?branch=master)](https://travis-ci.org/philsquared/Catch) Travis CI build status for the `master` branch
[![Build Status](https://travis-ci.org/philsquared/Catch.png?branch=Integration)](https://travis-ci.org/philsquared/Catch) Travis CI build status for the `Integration` branch