language: cpp
sudo: true

os:
  - linux

compiler:
  - clang
  - gcc

branches:
  only:
    - master

# Install dependencies
before_install:
  # Avoids a lengthy upgrade process for the java packages.
  - sudo apt-mark hold oracle-java7-installer oracle-java8-installer
  - sudo apt-get update -qq
  - if [ "$CXX" = "g++" ]; then
      wget https://github.com/biicode/misc/blob/master/travis/cpp/gcc_update.sh;
      chmod +x gcc_update.sh;
      ./gcc_update.sh --version 4.9;
    fi
  - if [ "$CXX" = "clang++" ]; then
      wget https://github.com/biicode/misc/blob/master/travis/cpp/clang_update.sh;
      chmod +x clang_update.sh;
      ./clang_update.sh --version 3.5 --libc++;
    fi

install:
  - mkdir build
  - cd build
  # - cmake ..

# script: make tests -k
script: $CXX --version

notifications:
  email: false

language: cpp
sudo: true

os:
  - linux

compiler:
  - clang
  - gcc

branches:
  only:
    - master

# Install dependencies
before_install:
  # Avoids a lengthy upgrade process for the java packages.
  - sudo apt-mark hold oracle-java7-installer oracle-java8-installer
  - sudo apt-get update -qq
  - if [ "$CXX" = "g++" ]; then
      wget https://raw.githubusercontent.com/biicode/misc/master/travis/cpp/gcc_update.sh;
      chmod +x gcc_update.sh;
      ./gcc_update.sh --version 4.9;
    fi
  - if [ "$CXX" = "clang++" ]; then
      wget https://raw.githubusercontent.com/biicode/misc/master/travis/cpp/clang_update.sh;
      chmod +x clang_update.sh;
      ./clang_update.sh --version 3.5 --libc++;
    fi

install:
  - mkdir build
  - cd build
  # - cmake ..

# script: make tests -k
script: $CXX --version

notifications:
  email: false

Correct paths to scripts for wget.
Correct paths to scripts for wget.
