Boost sandbox code and Travis CI.
See for example: https://github.com/qubyte/QuantumBoosty
Boost is very large, and the sandbox similarly so. If you want to use boost and boost sandbox with Travis, then it's best to install boost with apt-get, and acquire the sandbox modules you need only.
Travis CI makes an debian style system available for use in testing. Boost can be installed in the usual way
sudo apt-get install libboost-devI wanted to install the odeint sandbox package for the linked code, and it's available from a git repository.
clone --depth 1 git://github.com/headmyshoulder/odeint-v2.gitFinally, all that needs to be done is to copy the relevant parts of odeint to their places in boost.
sudo cp -r odeint-v2/boost/numeric/odeint/ /usr/include/boost/numeric/odeint
sudo cp -r odeint-v2/boost/numeric/odeint.hpp /usr/include/boost/numeric/odeint.hppFollowing the above, code may compile with boost and odeint. The yml file I used was:
language:
  - cpp
compiler:
  - g++
  - clang++
before_install:
  - sudo apt-get install libboost-dev
  - git clone --depth 1 git://github.com/headmyshoulder/odeint-v2.git
  - sudo cp -r odeint-v2/boost/numeric/odeint/ /usr/include/boost/numeric/odeint
  - sudo cp -r odeint-v2/boost/numeric/odeint.hpp /usr/include/boost/numeric/odeint.hpp
  - git clone --depth 1 git://github.com/qubyte/QuantumBoosty.git
  - cd QuantumBoosty
script:
  - $CXX two_level.cpp -o two_level
  - ./two_levelWritten by Mark Stanley Everitt
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
 #Cplusplus 
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#

 
