<commit_before>version: '2'
services:
  test:
    image: coda_db_test
    build:
      context: .
      args:
          CMAKE_DEFINES: -DCMAKE_BUILD_TYPE=Release -DENABLE_MEMCHECK=ON -DCMAKE_CXX_COMPILER=g++
    links:
      - mysql
      - postgres
    working_dir: /usr/src/build
    environment:
      MYSQL_URI: mysql://mysql:3306/test
      POSTGRES_URI: postgres://test:test@postgres:5432/test
    depends_on:
      - mysql
      - postgres
    command: dockerize -wait tcp://mysql:3306 -wait tcp://postgres:5432 -timeout 60s make test ARGS=-V
  coverage:
    image: coda_db_coverage
    build:
      context: .
      args:
          CMAKE_DEFINES: -DCMAKE_BUILD_TYPE=Debug -DENABLE_COVERAGE=ON -DCMAKE_CXX_COMPILER=g++
    environment:
      - TRAVIS_JOB_ID
    links:
      - mysql
      - postgres
    working_dir: /usr/src/build
    environment:
      MYSQL_URI: mysql://mysql:3306/test
      POSTGRES_URI: postgres://test:test@postgres:5432/test
    depends_on:
      - mysql
      - postgres
    command: dockerize -wait tcp://mysql:3306 -wait tcp://postgres:5432 -timeout 60s make coda_db_coverage_coveralls TRAVIS_JOB_ID=${TRAVIS_JOB_ID}
  mysql:
    image: mysql
    hostname: mysql
    environment:
      MYSQL_DATABASE: test
      MYSQL_ALLOW_EMPTY_PASSWORD: "true"
  postgres:
    image: postgres
    hostname: postgres
    environment:
      POSTGRES_DB: test
      POSTGRES_USER: test
      POSTGRES_PASSWORD: test<commit_msg>Update mysql config for docker<commit_after>version: '2'
services:
  test:
    image: coda_db_test
    build:
      context: .
      args:
          CMAKE_DEFINES: -DCMAKE_BUILD_TYPE=Release -DENABLE_MEMCHECK=ON -DCMAKE_CXX_COMPILER=g++
    links:
      - mysql
      - postgres
    working_dir: /usr/src/build
    environment:
      MYSQL_URI: mysql://test:test@mysql:3306/test
      POSTGRES_URI: postgres://test:test@postgres:5432/test
    depends_on:
      - mysql
      - postgres
    command: dockerize -wait tcp://mysql:3306 -wait tcp://postgres:5432 -timeout 60s make test ARGS=-V
  coverage:
    image: coda_db_coverage
    build:
      context: .
      args:
          CMAKE_DEFINES: -DCMAKE_BUILD_TYPE=Debug -DENABLE_COVERAGE=ON -DCMAKE_CXX_COMPILER=g++
    environment:
      - TRAVIS_JOB_ID
    links:
      - mysql
      - postgres
    working_dir: /usr/src/build
    environment:
      MYSQL_URI: mysql://test:test@mysql:3306/test
      POSTGRES_URI: postgres://test:test@postgres:5432/test
    depends_on:
      - mysql
      - postgres
    command: dockerize -wait tcp://mysql:3306 -wait tcp://postgres:5432 -timeout 60s make coda_db_coverage_coveralls TRAVIS_JOB_ID=${TRAVIS_JOB_ID}
  mysql:
    image: mysql
    hostname: mysql
    environment:
      MYSQL_DATABASE: test
      MYSQL_USER: test
      MYSQL_PASSWORD: <PASSWORD>
  postgres:
    image: postgres
    hostname: postgres
    environment:
      POSTGRES_DB: test
      POSTGRES_USER: test
      POSTGRES_PASSWORD: <PASSWORD>
{'fraction_non_alphanumeric': 0.09322033898305085, 'fraction_numerical': 0.025084745762711864, 'mean_word_length': 2.6387176325524044, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7013491', 'n_tokens_mistral': 1111, 'n_tokens_neox': 1049, 'n_words': 195}