Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Pipeline

v_ivanidi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 16, 2020

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
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 18, 2020

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 {} \;
v_ivanidi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 5, 2020

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
AUG Leaders

Atlassian Community Events