language: android

matrix:
    include:
        - os: osx
          env: PLATFORM=osx
          compiler: clang
        - os: linux
          env: PLATFORM=linux CXX=g++-4.8 CC=gcc-4.8
          addons:
            apt:
              sources: [ 'kalakris-cmake', 'ubuntu-toolchain-r-test' ]
              packages: [ 'cmake', 'gcc-4.9', 'g++-4.9', 'xorg-dev', 'libglu1-mesa-dev' ]
        - os: osx
          env: PLATFORM=ios
          compiler: clang
        - os: linux
          env: PLATFORM=android
          addons:
            apt:
              packages: [ 'lib32z1-dev', 'lib32stdc++6' ]
          android:
            components: [ 'build-tools-21.1.2', 'android-22' ]

before_install:
    - git submodule init && git submodule update
    - source ./travis/before_install.sh

install: ulimit -c

before_script:
    # Set the core file limit to unlimited so a core file is generated upon crash
    - ulimit -c unlimited -S

# build test project
script:
    - source ./travis/script_build_tests.sh
    - source ./travis/script_run_tests.sh
    - source ./travis/script_build.sh

after_success:
    - source ./travis/script_deploy_android_snapshot.sh

sudo: false

language: android

matrix:
    include:
        - os: osx
          env: PLATFORM=osx
          compiler: clang
        - os: linux
          env: PLATFORM=linux CXX=g++-4.9 CC=gcc-4.9
          addons:
            apt:
              sources: [ 'kalakris-cmake', 'ubuntu-toolchain-r-test' ]
              packages: [ 'cmake', 'gcc-4.9', 'g++-4.9', 'xorg-dev', 'libglu1-mesa-dev' ]
        - os: osx
          env: PLATFORM=ios
          compiler: clang
        - os: linux
          env: PLATFORM=android
          addons:
            apt:
              packages: [ 'lib32z1-dev', 'lib32stdc++6' ]
          android:
            components: [ 'build-tools-21.1.2', 'android-22' ]

before_install:
    - git submodule init && git submodule update
    - source ./travis/before_install.sh

install: ulimit -c

before_script:
    # Set the core file limit to unlimited so a core file is generated upon crash
    - ulimit -c unlimited -S

# build test project
script:
    - source ./travis/script_build_tests.sh
    - source ./travis/script_run_tests.sh
    - source ./travis/script_build.sh

after_success:
    - source ./travis/script_deploy_android_snapshot.sh

sudo: false

Use GCC 4.9 for Travis Linux builds
Use GCC 4.9 for Travis Linux builds
