How to build from boost-build on Travis-CI?

I am trying to create my project in excellent Travis-CI (which I use for other projects where the build system is GNU make).

My project is being built with boost-build , and I'm trying to find the correct apt-get package to use, but a simple one boost-builddoes not work. Does anyone know if there is a package for boost-build? It would also be very helpful if someone knew how to look for the package name that will be available through travis-ci. I believe that they run Ubuntu, which I am not familiar with (I use Arch).

Here is my .travis.yml (if that helps)

language: cpp
compiler: gcc 
before_script:
  - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
  - sudo apt-get -qq update
  - sudo apt-get -qq install g++-4.8 valgrind boost-build
  - export CXX="g++-4.8"
  - git submodule update --init --recursive
script:
  - b2

The error is very simple:

$ sudo apt-get -qq install g++-4.8 valgrind boost-build
E: Package 'boost-build' has no installation candidate
+4
source share
1 answer

.travis.yml

before_install:
    # or another boost version
    - sudo add-apt-repository ppa:apokluda/boost1.53 --yes
    - sudo apt-get update

install:
    # or another boost version
    - sudo apt-get install libboost-system1.53-dev
    - sudo apt-get install libboost-regex1.53-dev
    - sudo apt-get install libboost-filesystem1.53-dev
+2

Source: https://habr.com/ru/post/1532936/


All Articles