libbitcoin/libbitcoin — pull request #35 by lclc (2014-06-15 14:18:08+00:00)
Title: Add travis

Travis (www.travis-ci.org) is a really cool, free (for FOSS projects) CI, which you can activate with just one .travis.yml file in your github repo. We use it in the Open Transactions project and Conformal uses it for btcd, so I though that would be usfull for libbitcoin too.
Travis builds every pull requests and gives automated feedback on it. It also rebuilds the branch everytime something gets merged. For now I've set it to build master and develop.

You can build with gcc and clang on Linux and on Mac OS X (a repo owner has to send a request to the support for that). I've deactivated clang for now, since it seems to fail: https://travis-ci.org/lclc/libbitcoin/jobs/27610296#L882

It has the option to do a cppcheck everytime, but I have that deactivated for now. The rules are not very strict ATM, see travis/cppcheck_wrapper.sh. Do you want a cppcheck by travis? Otherways I'll remove it.

It has to build cppcheck and leveldb, since both are outdated in 12.04.
I've also had to add a PPA with a C++11 compiler, since that is outdated in 12.04 too. I hope they will switch to 14.04 or something else soon, but till then this works (just takes a few minutes longer)

The 12.04 / 14.04 Github Issue for Travis:
https://github.com/travis-ci/travis-ci/issues/2046

It takes about minutes to build with gcc.
The build for this commit on my repo: https://travis-ci.org/lclc/libbitcoin/builds/27616384

To activate Travis, you have to merge this PR and one of the repo owners have to activate it here: https://travis-ci.org/profile