tests:
  build: .
  tty: true
  stdin_open: true
  command: ./tests.sh

tests-with-report:
  extends:
    service: tests
  command: sh -c './tests.sh && ./vendor/bin/test-reporter'

tests:
  build: .
  tty: true
  stdin_open: true
  command: ./tests.sh

tests-with-report:
  extends:
    service: tests
  volumes:
    - ./.git:/code/.git
  command: sh -c './tests.sh && ./vendor/bin/test-reporter'

Use .git repository as volume to enable git log for Codeclimate
Use .git repository as volume to enable git log for Codeclimate
