Compiling C++ on Travis CI
• Mark Eschbach
My goal is to get an example of using Apache’s CMS example to compile. The example, at least right now, is a work in progress.
Basic Environment
Travis documents a basic configuration file:
language: cpp
Looks pretty simple, however they also note the default compiler installed will probably need to be updated as it most likely doesn’t support C++14 or C++17. Should be easy enough according to get to compile.
language: cpp
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
Well, that turned out easier than I thought. Running gcc-7 --version
produced the correct version line. I just need
to remember to set CXX=g++-7
&& CC=gcc-7
!