sudo: false

language: cpp

compiler:
  - gcc
  
install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
- mkdir boost_install_loc
- export BOOST_ROOT="boost_install_loc"

addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
    - gcc-5
    - g++-5

before_script:
  # Install latest boost
  - wget https://sourceforge.net/projects/boost/files/boost/1.58.0/boost_1_58_0.tar.gz/download
  - tar xf download
  - cd boost_1_58_0
  - ./bootstrap.sh --with-libraries=context --prefix=../boost_install_loc
  - ./b2 install > /dev/null
  # Get back to the root
  - cd ../

script:
  - mkdir build
  - cd build
  - cmake ../
  - make
  - make test
  
notifications:
  email:
    recipients: adastley@gmail.com
    on_success: change
    on_failure: change

sudo: false

language: cpp

compiler:
  - gcc
  
install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
- mkdir boost_install_loc
- export BOOST_ROOT=$(pwd)/boost_install_loc

addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
    - gcc-5
    - g++-5

before_script:
  # Install latest boost
  - wget https://sourceforge.net/projects/boost/files/boost/1.58.0/boost_1_58_0.tar.gz/download
  - tar xf download
  - cd boost_1_58_0
  - ./bootstrap.sh --with-libraries=context --prefix=../boost_install_loc
  - ./b2 install > /dev/null
  # Get back to the root
  - cd ../

script:
  - mkdir build
  - cd build
  - cmake ../
  - make
  - make test
  
notifications:
  email:
    recipients: adastley@gmail.com
    on_success: change
    on_failure: change

Use an absolute path for Boost root
CI: Use an absolute path for Boost root
