sudo: required
dist: trusty
language: cpp

before_install:
  - sudo apt-get update -qq
  # Install ZeroMQ
  - sudo apt-get install -y libzmq3-dev libzmq3
  # Install Boost
  - sudo apt-get install -y libboost-all-dev
  # Install yaml-cpp
  - sudo apt-get install -y libyaml-cpp0.5 libyaml-cpp-dev
  # Install libcURL
  - sudo apt-get install -y libcurl4-gnutls-dev
  # Install libarchive (to avoid compiling it)
  - sudo apt-get install -y libarchive-dev
  # Install isolate
  - git clone https://github.com/ioi/isolate.git
  - cd isolate
  - "cat Makefile | sed 's/all: isolate isolate.1 isolate.1.html/all: isolate/' > Makefile_new"
  - rm -f Makefile
  - mv Makefile_new Makefile
  - make
  - sudo make install
  - cd ..
  - rm -rf isolate
  # Install coveralls uploader
  - pip install --user cpp-coveralls

script:
  - mkdir build
  - cd build
  - cmake ..
  - make
  - ctest -E tool_ --output-on-failure

after_success:
  - ctest -R tool_ --output-on-failure || true
  - cd ${TRAVIS_BUILD_DIR}
  - coveralls -i src --gcov-options '\-lp'

sudo: required
dist: trusty
language: cpp

before_install:
  - sudo apt-get update -qq
  # Install ZeroMQ
  - sudo apt-get install -y libzmq3-dev libzmq3
  # Install Boost
  - sudo apt-get install -y libboost-all-dev
  # Install yaml-cpp
  - sudo apt-get install -y libyaml-cpp0.5 libyaml-cpp-dev
  # Install libcURL
  - sudo apt-get install -y libcurl4-gnutls-dev
  # Install libarchive (to avoid compiling it)
  - sudo apt-get install -y libarchive-dev
  # Install libcap for isolate
  - sudo apt-get install -y libcap-dev
  # Install isolate
  - git clone https://github.com/ioi/isolate.git
  - cd isolate
  - make isolate
  - sudo make install
  - cd ..
  - rm -rf isolate
  # Install coveralls uploader
  - pip install --user cpp-coveralls

script:
  - mkdir build
  - cd build
  - cmake ..
  - make
  - ctest -E tool_ --output-on-failure

after_success:
  - ctest -R tool_ --output-on-failure || true
  - cd ${TRAVIS_BUILD_DIR}
  - coveralls -i src --gcov-options '\-lp'

Fix Isolate compilation in Travis
Fix Isolate compilation in Travis
