PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, February 9, 2022

[FIXED] Scrutinizer: build and test in a subdirectory

 February 09, 2022     composer-php, php, phpspec, scrutinizer     No comments   

Issue

I have a repo with both front and backend application and i want to use scrutinizer to build and test my backend (PHP) application. How can i tell (or configure) scrutinizer to build and test my application in this subdirectory?

Here is the basic structure of my repo:

root
|__Api
|  |_src
|  |_composer.json
|  |_phpspec.yml
|  |_ ...
|
|__Front
   |_index.html
   |_api.php
   |_ ...

I would like to run composer install and phpspec in the Api directory.

Thank you, JM


Solution

Change the directory in your .scrutinizer.yml:

build:
    project_setup:
        before:
            - "cd Api"

https://scrutinizer-ci.com/docs/configuration/build#dependencies-project-setup

If you want to exclude frontend files from analysis, filter them out, e.g:

filter:
    paths: [Api/src/*]

https://scrutinizer-ci.com/docs/reviews/excluding_files_from_analysis



Answered By - Alex Blex
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing