dist: trusty
sudo: required
language:
  - cpp
compiler:
  - gcc
addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - gcc-6
      - g++-6
      - cmake
      - libsndfile1-dev
      - librtaudio-dev # This is here to populate the dependencies for the subsequent 5.0.0 build
install:
  - curl -o rtaudio-5.0.0.tar.gz http://www.music.mcgill.ca/~gary/rtaudio/release/rtaudio-5.0.0.tar.gz
  - tar xzvf rtaudio-5.0.0.tar.gz
  - cd rtaudio-5.0.0 && ./configure && make -j 4 && sudo make install && cd ..
  - git clone https://github.com/frabert/sf2cute
  - cd sf2cute && mkdir build && cd build
  - cmake .. && make -j2 && make install
  - cd ../../
script:
  # Export CC and CXX to tell cmake which compiler to use
  - export CC=/usr/bin/gcc-6
  - export CXX=/usr/bin/g++-6
  # Check versions of gcc, g++ and cmake
  - gcc -v && g++ -v && cmake --version
  - git submodule update --init --recursive
  - mkdir -p build
  - cd build
  - cmake ..
  - make -j2

dist: trusty
sudo: required
language:
  - cpp
compiler:
  - gcc
addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - gcc-6
      - g++-6
      - cmake
      - libsndfile1-dev
      - librtaudio-dev # This is here to populate the dependencies for the subsequent 5.0.0 build
install:
  # Export CC and CXX to tell cmake which compiler to use
  - export CC=/usr/bin/gcc-6
  - export CXX=/usr/bin/g++-6
  - curl -o rtaudio-5.0.0.tar.gz http://www.music.mcgill.ca/~gary/rtaudio/release/rtaudio-5.0.0.tar.gz
  - tar xzvf rtaudio-5.0.0.tar.gz
  - cd rtaudio-5.0.0 && ./configure && make -j 4 && sudo make install && cd ..
  - git clone https://github.com/frabert/sf2cute
  - cd sf2cute && mkdir build && cd build
  - cmake .. && make -j2 && make install
  - cd ../../
script:
  # Check versions of gcc, g++ and cmake
  - gcc -v && g++ -v && cmake --version
  - git submodule update --init --recursive
  - mkdir -p build
  - cd build
  - cmake ..
  - make -j2

Update GCC version even for install scripts
Update GCC version even for install scripts
