Gabriele Contini
2019-09-01 9445e20573c687651318daeb4871108ec3cb71ad
.travis.yml
@@ -1,13 +1,52 @@
language: cpp
branches:
  only:
    - master
before_install:
  - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
  - sudo apt-get update -qq
  - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
matrix:
   include:
   - os: linux
     dist: bionic
     addons:
        apt:
          packages:
             - cmake
             - valgrind
             - libssl-dev
             - zlib1g-dev
             - libboost-test-dev
             - libboost-filesystem-dev
             - libboost-iostreams-dev
             - libboost-program-options-dev
             - libboost-system-dev
             - libboost-thread-dev
             - libboost-date-time-dev
   - os: linux
     dist: xenial
     addons:
        apt:
          packages:
             - cmake
             - valgrind
             - libssl-dev
             - zlib1g-dev
             - libboost-test-dev
             - libboost-filesystem-dev
             - libboost-iostreams-dev
             - libboost-program-options-dev
             - libboost-system-dev
             - libboost-thread-dev
             - libboost-date-time-dev
stages:
  - compile
  - test
  
script:
  - cd build/linux && cmake ../..
before_script:
  - mkdir build
  - cd build && cmake -DCMAKE_INSTALL_PREFIX=../../install ..
jobs:
  include:
      - stage: compile
        script:
          - make
            make install
      - stage: test
        script: make test