You are using Ruby as the language, while using npm to manage your dependencies. I donāt know off hand what version of Node.js and npm your image has, but whatever the case, Iād first try using language: node_js and find a reasonable version that works.
After specifying node language and adding a target version (one from my local machine that successfully runs detox tests), the build errored with the same output
The command "npm install jest-expo" failed and exited with 1 during .
The log says thereās a problem with detox@15.4.1 postinstall script and thereās some helpful output from that script above that. Itās your job to diagnose it. Thereās no visible issue on Travis side so far.