I have a problem using travis with lerna (I have two packages inside my repo).
My repo - https://github.com/TheOpti/my-notes - it’s made with lerna.js and I have two packages: frontend and backend. I would like to start with frontend, so that anytime there is a pull request made which touches frontend code, job is triggered and it will run unit tests and build.
travis.yml file - it’s created and merged into master branch. It’s located in frontend/ package.
My problem - I checked the documentation of travis and I would like to set up a pipeline which will be triggered anytime pull request for “frontend” package is created.
Should it be one travis.yml file for each of the packages? Or should it be only one for one repo? If yes, then how can I parametrize it so that it can run tests for frontend package? For example, I would like to run the job for this package only when branch has name starting with “frontend/”.