language: cpp

compiler:
  - gcc
  - clang

cache: apt

install:
  - sudo apt-get update -qq
  - sudo apt-get install -qq mysql-server mysql-client libmysqlcppconn-dev

script:
  - make -kj
  - echo | sudo make install
  - (cd build && sudo -u sim ./sim-server)&
  - wget -t 5 -T 1 --retry-connrefused http://127.7.7.7:8080/
  - cat index.html

branches:
  only:
    - beta
    - develop
    - master

notifications:
  email: false

matrix:
  fast_finish: true

language: cpp

compiler:
  - gcc
  - clang

cache: apt

install:
  - sudo apt-get update -qq
  - sudo apt-get install -qq mysql-server mysql-client libmysqlcppconn-dev

before_script:
  - mysql -e "CREATE USER sim@localhost IDENTIFIED BY 'sim'; CREATE DATABASE sim; GRANT ALL ON sim.* TO 'sim'@'localhost';" -u root

script:
  - make -kj
  - printf "sim\nsim\nsim\nlocalhost\n" | sudo make install
  - (cd build && sudo -u sim ./sim-server)&
  - wget -t 5 -T 1 --retry-connrefused http://127.7.7.7:8080/
  - cat index.html

branches:
  only:
    - beta
    - develop
    - master

notifications:
  email: false

matrix:
  fast_finish: true

Fix problem with MySQL on Travis CI
Fix problem with MySQL on Travis CI
