PHPUnit Permission Denied



I’m just updating my circle.yml file due to my version 1 not compiling anymore, and so I’ve got the following command:

  - run:
      name: Run Tests
      command: |
        mkdir -p $CIRCLE_TEST_REPORTS/phpunit && \
        vendor/bin/phpunit --log-junit $CIRCLE_TEST_REPORTS/phpunit/junit.xml --test-suffix=test.php --bootstrap tests/autoload.php tests/.

And I get the following error:

/bin/bash: line 1: vendor/bin/phpunit: Permission denied
Exited with code 1

This is the build:

What am I doing wrong? It’s the same as the example, except including my variables.


Try chmod +x vendor/bin/phpunit first

closed #3

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.