Travis currently supports the following tools for building C++ projects according to their official documentation:
Using these is very straight forward. An example
.travis.yml file for CMake projects looks like this:
language: cpp compiler: - gcc - clang before_script: - mkdir build - cd build - cmake .. script: make
We specify C++ as our language compiling with both gcc and clang. We create the standard CMake build directory and execute the cmake command in our project's home directory. Finally, we invoke make on the auto-generated Makefiles.
Using scons actually looks very similar to this: we just omit the cmake invocation and replace the script line with the following: