Linux
Tips and tricks for Linux platforms.
Setting up Linux build on Travis CI
In general, a Linux build is done by adding the following to your .travis.yml
matrix build. Currently Ubuntu 14.04 is the latest you can get. See the official documentation for more information.
matrix: include: - language: cpp os: linux dist: trusty compiler: gcc
It's advisable to use the container builds instead of the sudo-enabled ones as they are generally much faster to boot up, however they have restrictions on what packages can be installed. Installing packages is done by adding the following to your .travis.yml
matrix: include: - language: cpp os: linux ... addons: apt: packages: - ninja-build - libsdl2-dev ...
You can find out how's the package named by searching for Ubuntu Trusty packages. The packages are whitelisted, be sure to check the ubuntu-trusty
file in https:/
Travis supports ANSI color escape codes, so don't forget to enable colored output for Corrade::
CORRADE_TEST_COLOR=ON ctest -V