Can i run behat tests with docker-compose exec?


#1

Hello. This is my first post here. I’m trying to use circle.ci with a php (symfony 4) app. i have setup my config.yml file like

version: 2
jobs:
  build:
    working_directory: ~/project
    machine: true
    steps:
      - checkout
      - run:
          name: Build application Docker image
          command: |
            docker-compose up -d
      - run:
          name: Build application Docker image
          command: |
            docker-compose exec php bin/console cache:clear

docker-compose up -d ends well, but then, in the second step i get a no container found error.
if i remove the -d from the docker-compose up then it looks the second run step is never reached.

Any clues? Thanks.


#2