Travis CI split config between `client` and `server`

I’m building a MERN stack app which is structured like this:

The client is built using react(CRA config with typescript) and the server is done with Node JS and typescript.

How would the .travis.yml config look like? This is because certain fields and paths may conflict!