version: '2'
services:
  test:
    image: libcoda_test
    build:
      context: .
      args:
          CMAKE_DEFINES: -DCMAKE_BUILD_TYPE=Release -DENABLE_MEMCHECK=ON -DCMAKE_CXX_COMPILER=g++
    environment:
      MYSQL_URI: mysql://mysql:3306/test
      POSTGRES_URI: postgres://test:test@postgres:5432/test
    privileged: true
    working_dir: /usr/src/build
    command: dockerize -wait tcp://mysql:3306 -wait tcp://postgres:5432 -timeout 30s make test ARGS=-V
    depends_on:
      - mysql
      - postgres
  coverage:
    image: libcoda_coverage
    environment:
      MYSQL_URI: mysql://mysql:3306/test
      POSTGRES_URI: postgres://test:test@postgres:5432/test
    privileged: true
    build:
      context: .
      args:
          CMAKE_DEFINES: -DCMAKE_BUILD_TYPE=Debug -DENABLE_COVERAGE=ON -DCMAKE_CXX_COMPILER=g++
    command: dockerize -wait tcp://mysql:3306 -wait tcp://postgres:5432 -timeout 30s make libcoda_coverage_coveralls
    depends_on:
      - mysql
      - postgres
  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
version: '2'
services:
  test:
    image: libcoda_test
    build:
      context: .
      args:
          CMAKE_DEFINES: -DCMAKE_BUILD_TYPE=Release -DENABLE_MEMCHECK=ON -DCMAKE_CXX_COMPILER=g++
    environment:
      MYSQL_URI: mysql://mysql:3306/test
      POSTGRES_URI: postgres://test:test@postgres:5432/test
    privileged: true
    working_dir: /usr/src/build
    command: dockerize -wait tcp://mysql:3306 -wait tcp://postgres:5432 -timeout 30s make test ARGS=-V
    depends_on:
      - mysql
      - postgres
  coverage:
    image: libcoda_coverage
    environment:
      MYSQL_URI: mysql://mysql:3306/test
      POSTGRES_URI: postgres://test:test@postgres:5432/test
    privileged: true
    build:
      context: .
      args:
          CMAKE_DEFINES: -DCMAKE_BUILD_TYPE=Debug -DENABLE_COVERAGE=ON -DCMAKE_CXX_COMPILER=g++
    command: dockerize -wait tcp://mysql:3306 -wait tcp://postgres:5432 -timeout 30s make coda_coverage_coveralls
    depends_on:
      - mysql
      - postgres
  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
Fix bug in compose file
Fix bug in compose file
