Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Hi. Help me please anybody.

I try to use pipeline to use phpunit.

This is my pipeline 

image: phpunit/phpunit:5.0.3
pipelines:

       default:

            - step:

                   script: - phpunit tests/phpunit.xml

But i reseive next error: + phpunit tests/phpunit.xmlPHPUnit 5.0.10 by Sebastian Bergmann and contributors.

Cannot open file "/opt/atlassian/pipelines/agent/build/app/vendor/autoload.php".

Explain this message for me please.

1 answer

0 votes

Hi @v_ivanidi ,

Thank you for your question!

Try to use the next pipeline:

image: php:7.3

pipelines:
default:
- step:
name: Test
image: phpunit/phpunit
script:
- docker run -v $(pwd):/app --rm phpunit/phpunit test
services:
- docker
- step:
name: Lint
script:
- find . -name '*.php' -exec php -l {} \;

Hi Oleksandr!

Thanks for you help.

I tried your sample, but the error persists.

Cannot open file "/app/app/vendor/autoload.php"

Can you help me again pls.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

537 views 15 18
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you