sudo: required

dist: trusty

language: cpp

services: 
  - mysql

addons:
  apt:
    packages:
    - mysql-server-5.6
    - mysql-client-core-5.6
    - mysql-client-5.6

install:
  - cd ~/build/HaliteChallenge/Halite/tests
  - cp travisTests.ini tests.ini
  - cp travisTests.ini ../halite.ini
 
  - cd ~/build/HaliteChallenge/Halite/website
  - sudo ./install.sh

  - cd ~/build/HaliteChallenge/Halite/worker
  - sudo ./install.sh 123

  - cd ~/build/HaliteChallenge/Halite/tests
  - sudo ./install.sh

  - export CXX="g++-4.9"

script:
  - cd ~/build/HaliteChallenge/Halite/tests/
  - sudo ./runTests.sh

notifications:
    slack: halite:HnrNM3effc9q8ZVvT7PqsSYC

sudo: false
dist: trusty
language: cpp

# https://docs.travis-ci.com/user/languages/cpp/
# Test on multiple GCC and Clang versions
matrix:
  include:
    # works on Precise and Trusty
    - os: linux
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - g++-4.9
      env:
         - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"

    # works on Precise and Trusty
    - os: linux
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - g++-5
      env:
         - MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"

    # works on Precise and Trusty
    - os: linux
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - g++-6
      env:
        - MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"

    # works on Trusty
    - os: linux
      addons:
        apt:
          sources:
            - llvm-toolchain-trusty-3.9
          packages:
            - clang-3.9
      env:
        - MATRIX_EVAL="CC=clang-3.9 && CXX=clang++-3.9"

    # works on Trusty
    - os: linux
      addons:
        apt:
          sources:
            - llvm-toolchain-trusty-4.0
          packages:
            - clang-4.0
      env:
        - MATRIX_EVAL="CC=clang-4.0 && CXX=clang++-4.0"

    # works on Trusty
    - os: linux
      addons:
        apt:
          sources:
            - llvm-toolchain-trusty
          packages:
            - clang-5.0
      env:
        - MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"

before_install:
    - eval "${MATRIX_EVAL}"

script:
  - cd environment/
  - make -j2

Update Travis CI config (hopefully)
Update Travis CI config (hopefully)
