language: cpp
compiler: gcc
dist: trusty
notifications:
  email: false

# disable the default submodule logic. Does not work well with ssh urls.
git:
  submodules: false
# use sed to replace the SSH URL with the public URL, then init and update submodules
before_install:
  - sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
  - git submodule update --init --recursive

  # C++17
  - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
  - sudo apt-get update -qq
    

install: 
  # C++17
  - sudo apt-get install -qq g++-7
  - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 90
  - sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-7 90

before_script:
  - g++ --version
  - PARENTDIR=$(pwd)
  - mkdir $PARENTDIR/build

script:
  - cd $PARENTDIR/build
  - cmake $PARENTDIR
  - make

language: cpp
compiler: gcc
dist: trusty
notifications:
  email: false

# disable the default submodule logic. Does not work well with ssh urls.
git:
  submodules: false
# use sed to replace the SSH URL with the public URL, then init and update submodules
before_install:
  - sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
  - git submodule update --init --recursive

  # C++17
  - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
  - sudo apt-get update -qq
    
install:
  # C++17
  - sudo apt-get install -qq g++-7
  - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 90
  - sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-7 90

before_script:
  - g++ --version
  - PARENTDIR=$(pwd)
  - mkdir $PARENTDIR/build
  - mkdir $PARENTDIR/eulertools/build

script:
  - cd $PARENTDIR/build
  - cmake $PARENTDIR
  - make

  - cd $PARENTDIR/eulertools/build
  - cmake $PARENTDIR/eulertools
  - make

Add testing of eulertools to Travis build.
Add testing of eulertools to Travis build.
