language: cpp

sudo: false

compiler:
- clang
- gcc

addons:
  apt:
    sources:
    - llvm-toolchain-precise-3.5
    - ubuntu-toolchain-r-test
    - kubuntu-backports
    packages:
    - clang-3.5
    - cmake
    - g++-4.9
    - libstdc++6
    # Coveralls
    - curl
    # GLFW
    - libxxf86vm-dev
cache:
  directories:
    - $HOME/.ccache

env:
  global:
    - GCC_VERSION="4.9"

before_install:
  - echo $LANG
  - echo $LC_ALL
  - export SOURCE_ROOT=`pwd`;
  - npm install
  
  # gcc before_install
  - if [ "$CXX" = "g++" ]; then export CXX="g++-${GCC_VERSION}" CC="gcc-${GCC_VERSION}" GCOV="gcov-${GCC_VERSION}"; fi
  - if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.5" CC="clang-3.5"; fi

branches:
  only:
  - master

script:
  # build
  - cd ${SOURCE_ROOT}
  - grunt build
  - cd build
  - make
  # coveralls build
  - cd ${SOURCE_ROOT}
  - grunt build:coveralls
  - cd cbuild
  - make

after_success:
  # In after_success to avoid failures due to Coveralls 500s
  - make coveralls

before_cache:
  - ccache --show-stats

notifications:
  email: false

language: cpp

sudo: false

compiler:
- clang
- gcc

addons:
  apt:
    sources:
    - llvm-toolchain-precise-3.5
    - ubuntu-toolchain-r-test
    - kubuntu-backports
    packages:
    - clang-3.5
    - cmake
    - gcc-4.9
    - g++-4.9
    - libstdc++6
    # Coveralls
    - curl
    # GLFW
    - libxxf86vm-dev
cache:
  directories:
    - $HOME/.ccache

env:
  global:
    - GCC_VERSION="4.9"

before_install:
  - echo $LANG
  - echo $LC_ALL
  - export SOURCE_ROOT=`pwd`;
  - npm install
  
  # gcc before_install
  - if [ "$CXX" = "g++" ]; then export CXX="g++-${GCC_VERSION}" CC="gcc-${GCC_VERSION}" GCOV="gcov-${GCC_VERSION}"; fi
  - if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.5" CC="clang-3.5"; fi

branches:
  only:
  - master

script:
  # build
  - cd ${SOURCE_ROOT}
  - grunt build
  - cd build
  - make
  # coveralls build
  - cd ${SOURCE_ROOT}
  - grunt build:coveralls
  - cd cbuild
  - make

after_success:
  # In after_success to avoid failures due to Coveralls 500s
  - make coveralls

before_cache:
  - ccache --show-stats

notifications:
  email: false

Add gcc-4.9 to see if that pulls in the std headers.
Add gcc-4.9 to see if that pulls in the std headers.


Former-commit-id: 50eb628e8f6a06312836f5d907bee3425ca9e35e [formerly ae8d872b6e3adae6cfda03d7b495955c473863e1]
Former-commit-id: 0b10cffe46f74cc7e0b3013fdca6aadecffeaa23