Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run build command without bootstrap #6749

Open
storeman opened this issue Mar 27, 2024 · 0 comments
Open

Run build command without bootstrap #6749

storeman opened this issue Mar 27, 2024 · 0 comments

Comments

@storeman
Copy link

storeman commented Mar 27, 2024

What are you trying to achieve?

I want to run the phpstan analyse command in a pipeline. To do static analysis on the tests, PHPStan needs the generated files (for example UnitTesterActions.php). When I try to create the generated files using codecept build, it runs the configured bootstrap. My bootstrap sets up my database connection and database to for the tests, but I wouldn't need it at the build command. Also, for static analysis I don't want to setup the database.

What do you get instead?

The configured bootstrap: bootstrap.php is executed on codecept build and there is seems no way to prevent this.

Details

  • Codeception version: 5.1
  • PHP Version: 8.3.2
  • Operating System: Docker PHP-FPM
  • Installation type: Composer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant